How do I prevent a KActor from changing the orientation of its Z-Axis?
- by Almo
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.
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?