How to keep a shape upright?

Software: Away3D 4.x

synkarius, Member
Posted: 29 April 2012 11:45 PM   Total Posts: 64

Hi all,

This may be a newb question, so I apologize, but I’m having no luck figuring it out from the AwayPhysics CharacterDemo.

How do I keep a shape upright like the Capsule is in the CharacterDemo? What property do I set, or method do I call? I can’t even figure out where in the CharacterDemo source the little Hellknight guy is even moved.

Frustrated thanks in advance.

   

Oscar, Newbie
Posted: 30 April 2012 07:07 AM   Total Posts: 5   [ # 1 ]

Rather than setting this on the shape you can set this on the rigid body:

body.angularFactor = new Vector3D(000); 

I’m not 100% sure of this, but I think you limit specific axises by having either 1 or 0 in that axis. For example Vector3D(0, 1, 0) to allow rotation of the Y axis only.

   

synkarius, Member
Posted: 30 April 2012 07:34 AM   Total Posts: 64   [ # 2 ]

Thanks Oscar. I’ll try that.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X