_walker.linearVelocity = new Vector3D(0,0,0.1);
_walker doesn`t` move,why?
when i use _walker.x += 1, it moves.
_walker.linearVelocity = new Vector3D(0,0,0.1) doesn`t workSoftware: Away3D 4.x |
||
datouaizi, Member
Posted: 11 February 2012 10:28 AM Total Posts: 98 _walker.linearVelocity = new Vector3D(0,0,0.1); _walker doesn`t` move,why? when i use _walker.x += 1, it moves. |
||
John Brookes, Moderator
Posted: 11 February 2012 01:20 PM Total Posts: 732 [ # 1 ] Depends where your setting it. If its in your enterframe and its not moving then its probably falling asleep. or set it to active when you need to move or set it to not fall asleep Look in the examples for the physics debug. The colour of the bounds will tell you if your body is asleep active etc. |