How can the pivot point of a object be changed during Runtime?
Is it possible to set the pivot point of a gameobject during run-time in code with probuilder? or maybe some other tool?
During run-time in Scene, I have an object that detaches its children. The pivot point of each of the detached children seems to be inherited from its previous parent. It is at this point that i need to reset its pivot to its center for other coded behaviors to work properly.
I dont know itf this can help you. But think about deparenting the object and making it child of another empty object. If the position inside this new parent is not the center, when rotating the parent, your object will rotate with this new parent position as a pivot point.
+Just deparent at the en of the rotation and place it where it was at the begining
Your answer
Follow this Question
Related Questions
How to disable child adopting the transform of its new parent object? 1 Answer
Child always on parent top to get the number of dice 0 Answers
Position Child Object to center of Parent Object [SOLVED] 1 Answer
how to move the enemy in the current position of the player but only ones? 0 Answers
Child Instantiated GameObject to GameObject hit by raycast 1 Answer