I have tried using this on a dynamic physic object but nothing really happens
the balls falls on a static object and just stay there
code :
function CreatePlayer()
pl.id = CreateObjectBox(playerWidth,playerHeight,playerDepth)
SetObjectPosition(pl.id,0,0,0)
Create3DPhysicsStaticBody(pl.id)
CreateBall()
endfunction
function CreateBall()
Balls[1].id = CreateObjectSphere(BallWidth,8,8)
SetObjectPosition(Balls[1].id,GetObjectX(pl.id),GetObjectY(pl.id)+PlayerHEight*20,GetObjectZ(pl.id))
Create3DPhysicsDynamicBody(balls[1].id)
SetObjectShapeSphere(balls[1].id)
SetOBjectColor(balls[1].id,75,75,75,255)
SetObject3DPhysicsMass(balls[1].id,1)
SetObject3DPhysicsRestitution(balls[1].id,100)
endfunction
so it creates a player box with static attributes on to it then places the ball above it with enough space on the y axis so it would count as for restitution should
when I run the project the ball falls and stay on the static player object.
any thoughts ??
thank you for your time
haliop.