How to lock translations?

Started by Yerst, July 30, 2013, 05:52:44 PM

Previous topic - Next topic

Yerst

Hey!
At first, i wan't to translate the model to a point in the game.
Then i translate it again (with the camera Position), but  i clear the translations every frame.
When i clear the translations, the translation i made at the beginning is also cleared.
Can i lock the translation or translate it in a way that the translation doesn't get cleared when i call clearTranslations?

EgonOlsen

You can apply the current translation to setOrigin(...) and then clear it. That should do the trick.

Yerst

Thx, but how do i also do this with rotations?