As the title says, materials are not applied to convex bodies whereas they are applied correctly on all other types (box, sphere & mesh). Here is the code, demonstrating it:
` set up the program
phy start
autocam off
sync on
sync rate 60
position camera 0, 20, -70
` create our ground object
make object box 1, 80, 1, 50
texture object 1,1
phy make rigid body static box 1
` materials
phy make material 1, "very bouncy"
phy set material restitution 1, 1.0
phy build material 1
phy make material 2, "no bounce"
phy set material restitution 2, 0.0
phy build material 2
` create Box bodies
make object cube 2, 5
position object 2, -20, 30, 0
phy make rigid body dynamic box 2, 1
make object cube 3, 5
position object 3, -10, 30, 0
phy make rigid body dynamic box 3, 2
` create convex bodies
make object cube 4, 5
position object 4, 10, 30, 0
phy make rigid body dynamic convex 4, 1
make object cube 5, 5
position object 5, 20, 30, 0
phy make rigid body dynamic convex 5, 2
` colour all objects
for i = 1 to 5
color object i, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
set object specular i, rgb ( rnd ( 255 ), rnd ( 255 ), rnd ( 255 ) )
set object specular power i, 255
set object ambient i, 0
next i
do
center text object screen x ( 2 ), object screen y ( 2 ) - 80, "Box"
center text object screen x ( 3 ), object screen y ( 3 ) - 80, "Box"
center text object screen x ( 4 ), object screen y ( 4 ) - 80, "Convex"
center text object screen x ( 5 ), object screen y ( 5 ) - 80, "Convex"
center text object screen x ( 2 ), object screen y ( 2 ) - 60, "Res: 1.0"
center text object screen x ( 3 ), object screen y ( 3 ) - 60, "Res: 0.0"
center text object screen x ( 4 ), object screen y ( 4 ) - 60, "Res: 1.0"
center text object screen x ( 5 ), object screen y ( 5 ) - 60, "Res: 0.0"
phy update
sync
loop
Home computers are being called upon to perform many new functions, including the consumption of homework formerly eaten by the dog.