How do I prevent a KActor from changing the orientation of its Z-Axis?

Posted by Almo on Game Development See other posts from Game Development or by Almo
Published on 2012-10-19T21:33:49Z Indexed on 2012/10/19 23:22 UTC
Read the original article Hit count: 268

Filed under:
|

So I have an object that inherits from KActor that I would like to behave as a dynamic physics object, but I want its Z-Axis to remain upright, but very stiffly. I've tried the bStayUpright that triggers the "Stay Upright Spring". The problem is, it's a spring, and the object in question oscillates into position when I want it to remain oriented properly without wobbling.

screenshot

In the image above, the yellow block has fallen onto the gray box, and it is currently pivoting about the contact point as it tries to right itself.

Should I be tweaking the StayUprightMaxTorque and StayUprightTorqueFactor parameters, or should I be using a Constraint of some sort?

© Game Development or respective owner

Related posts about physics

Related posts about udk