walkerBody = new AWPRigidBody(sphereShape,walker,0);body doesn`t move

Software: Away3D 4.x

datouaizi, Member
Posted: 13 February 2012 07:53 AM   Total Posts: 98

walkerBody = new AWPRigidBody(sphereShape,walker,0);

if third param number is 0, AWPRigidBody can`t move .
if is not 0 ,it can move.

i don`t` want it has mass.

   

John Brookes, Moderator
Posted: 13 February 2012 11:29 AM   Total Posts: 732   [ # 1 ]

If its mass is 0 then its a static body and doesn’t move.
Everything that moves has to have mass.

If you want a rigidBody to float set its gravity
eg
cubeRb.gravity = new Vector3D(0, 0, 0);

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X