05.08.2011, 14:33
You have to use TWO functions at the SAME TIME:
Key1: Object is closed
Key2: Object is opened.
So, to do the animation correctly:
-> Move the object Higher and closer to the Joint.
-> Using a timer rotate the object at a total of 90 degrees in X/Y axis (depending on your world postion).
Let me show you a picture:
pawn Код:
1. MoveDynamicObject() //Normally
2. SetDynamicObjectRot() //Using a repeating timer...
Key2: Object is opened.
So, to do the animation correctly:
-> Move the object Higher and closer to the Joint.
-> Using a timer rotate the object at a total of 90 degrees in X/Y axis (depending on your world postion).
Let me show you a picture:
