How to translate to specific point?

Started by arekz, July 12, 2016, 03:03:37 PM

Previous topic - Next topic

arekz

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) ?

EgonOlsen

Something like:


obj.clearTranslation();
obj.translate(1f, 2f, 3f);