Author Topic: Moving Platform  (Read 102 times)


you posted this in modification help, not addons

(ignoring malleo) how does this work?

its a static shape that updates it and your transforms probably every 33ms. on a multiplayer server you'd see considerable stuttering of both the static shape and players that are on it

It moves a Collision Staticshape, a Detail Staticshape, and a Trigger Zone every 34 ms.  It then loops through all objects inside of the trigger zone.  If the object is above the platform, it teleports and rotates that object with the static shapes.  Because the object's movement is actually independent of the platform, it has to do some math to figure out how the player's movement is affected by the rotation of the platform.


Even in single player there's a noticeable stutter.

i wonder if using zones and applied force would be smoother than updating transforms manually

Stream found a dependancy error.  Ill fix that tomorrow.

Im not really intending to expand on this until ive got something i want to make using the tech.  But the next step would be to attach a platform like this to a vehicle.


Physics zones are not supposed to move.  You may get jitter from client prediction if you use applied force.