Page 1 of 1

Manually moving statics

Posted: Mon Nov 23, 2020 2:24 am
by Senlaar
Hello!

If I move a static by directly editing it's Pose.Position, will it impart force on dynamics it comes into contact with? Or does the simulation need to be controlling movement for such force to be created? (Simplest concrete example for clarity: if a dynamic sphere is on top of a static flat ground, and I move the ground upwards by editing its Pose, will the sphere rise as well to stay on top?) Thanks!

Re: Manually moving statics

Posted: Mon Nov 23, 2020 2:30 am
by Norbo
Setting a position is equivalent to teleportation- there is no velocity component, so things will only move out of the way due to penetration recovery. If the ground teleported up a little bit (and the affected bodies are awake), they would scoot up a bit in response to get out of penetration. If the ground shot 30 feet above the bodies, the bodies would just fall into the void since the ground didn't move continuously from A to B, it just poofed.

If you want the proper dynamic response, a kinematic body moved by setting the velocity would work.

Re: Manually moving statics

Posted: Wed Nov 25, 2020 2:02 am
by Senlaar
Makes perfect sense, thanks!