Author Topic: why translate and setorigin are different location?  (Read 1530 times)

Offline Uncle Ray

  • int
  • **
  • Posts: 81
    • View Profile
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
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.