www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Uncle Ray on September 21, 2015, 06:19:51 am

Title: why translate and setorigin are different location?
Post by: Uncle Ray 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?
Title: Re: why translate and setorigin are different location?
Post by: EgonOlsen 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.