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
»
why translate and setorigin are different location?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: why translate and setorigin are different location? (Read 1593 times)
Uncle Ray
int
Posts: 81
why translate and setorigin are different location?
«
on:
September 21, 2015, 06:19:51 am »
method A
{
obj.cleartranslation();
obj.translate(10,10,10);
}
method B
{
obj.cleartranslation();
obj.setorigin(10,10,10);
}
In my project,method A and method B are different obj's location,
Any tips?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
Re: why translate and setorigin are different location?
«
Reply #1 on:
September 21, 2015, 08:30:20 am »
I don't see why this should be the case. Just keep in mind that setOrigin() doesn't affect child objects and that clearTranslation() doesn't reset the origin. Maybe it's one of those that makes for the difference.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
why translate and setorigin are different location?