So what I am asking is WHILE, the game engine is running, is it possible to change the current pivot point origin of an object to a new location of the object, I'm making a car game and i want to set the pivot point on the left when I'm turning left, and to the right when I'm turning right. Is this possible while the game engine is still running?


When you mean the object's origin: No, you can't (and it makes no sense).

When you mean the rotation center, you can:

  • combine the rotation with a translation (= orbiting)
  • parent the object to another that acts as rotation center. Turn the parent rather the child.

When you mean the pivot point of a a rigid body constraint, I do not know. The API does not look like you can. An alternative would be to remove the current constraint and create a new one with the pivot at the new location.

  • $\begingroup$ I agree using a pivot empty would absolutely be the way to go. Think tho, in theory, changing origin could be done via transforming verts of MeshProxy and moving local matrix accordingly. $\endgroup$ – batFINGER Mar 22 '18 at 8:41
  • $\begingroup$ alright that makes sense thank you for your help. $\endgroup$ – Hexadecimal Mar 22 '18 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.