jPCT-AE - a 3d engine for Android > Support
How to lock translations?
(1/1)
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?
Navigation
[0] Message Index
Go to full version