Hi there.
When the origin shifting is called from _physics_process() it leads to physics related glitches.
For example, I have a rigidbody-based vehicle and a proceduraly generated planet. I ride for some time and then when the origin shifting happens the vehicle either flies away into the space due to gigantic force being applied to it because of the planet translation, or it just getting stuck inside the terrain collider.
If the shifting is called from _process(), everything is fine.
What do you think the main difference between calling from _process() and _physics_process() could be? Apart from the minor physics issue being worked around, what other differences could this change make?
Hi there. When the origin shifting is called from
_physics_process()
it leads to physics related glitches.For example, I have a rigidbody-based vehicle and a proceduraly generated planet. I ride for some time and then when the origin shifting happens the vehicle either flies away into the space due to gigantic force being applied to it because of the planet translation, or it just getting stuck inside the terrain collider.
If the shifting is called from
_process()
, everything is fine.