Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
How to translate to specific point?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to translate to specific point? (Read 1545 times)
arekz
byte
Posts: 8
How to translate to specific point?
«
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) ?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: How to translate to specific point?
«
Reply #1 on:
July 12, 2016, 03:28:11 pm »
Something like:
Code:
[Select]
obj.clearTranslation();
obj.translate(1f, 2f, 3f);
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
How to translate to specific point?