www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Yerst on July 30, 2013, 05:52:44 pm

Title: How to lock translations?
Post by: Yerst on July 30, 2013, 05:52:44 pm
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?
Title: Re: How to lock translations?
Post by: EgonOlsen on July 30, 2013, 08:57:28 pm
You can apply the current translation to setOrigin(...) and then clear it. That should do the trick.
Title: Re: How to lock translations?
Post by: Yerst on July 30, 2013, 11:09:55 pm
Thx, but how do i also do this with rotations?