www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: arekz on July 12, 2016, 03:03:37 pm

Title: How to translate to specific point?
Post by: arekz on July 12, 2016, 03:03:37 pm
I cannot find simple thing. I want to put my Object3D instance to specific point, for example  (1f, 0f, 2f)
the Object3D has a method translate() but this method translate by vector (add to actual position).
How to make setTranslateTo(point) ?
Title: Re: How to translate to specific point?
Post by: EgonOlsen on July 12, 2016, 03:28:11 pm
Something like:

Code: [Select]
obj.clearTranslation();
obj.translate(1f, 2f, 3f);