Hello, see this video for reference
How do I detect when an object (Let’s say Sinbad) has come to rest after falling so I can put it back on track?
I would like to raise it up on feet, kind of reset the model so the game can continue.
Excellent! I’m using isActivate() and it’s working as expected.
Now I want to put the object (Sinbad) back on his feet. Kind of reset the RigidBodyControl to 0,0,0 but do it gradually.
I have this function:
public void physicalRotateModel(RigidBodyControl ctl, int axisNum, float direction, float rotateVal) {
But what happens is that when I just start rotating the RigidBodyControl it fully resets itself to 0,0,0 so the comeback on his feet is not made gradually.
Any ideas why does it happen and how can I reset the RigidBodyControl rotation gradually ?