CMCharacter Modules 0.1.0

Platform Mover

Kind: Gym

Moves a platform back and forth, or turns it. Lifts, crushers and ferries need no code.

Moves a platform back and forth, or turns it, for lifts, crushers and ferries.

Inspector
▼Platform Mover⋮
MotionBack And Forth ▾
Offset(0, 0, 6)
Speed2
Pause1
Degrees Per Second30
The Platform Mover component in the Inspector, with its defaults.
Origin. Quake's func_plat and func_door (1996).

How it works

Moves a platform for the gym: back and forth along an offset, or turning around its up axis. It moves the transform in Update on purpose: characters ride any moving collider, whatever moves it.

Properties

PropertyDescriptionRangeDefault
MotionSlide back and forth, or turn in place.Back And Forth
OffsetBack and forth: how far the platform travels from where it starts, metres.(0, 0, 6)
SpeedBack and forth: speed, m/s.0.01 or more2
PauseBack and forth: seconds to wait at each end.0 or more1
Degrees Per SecondTurn: degrees per second around the platform's up axis.30

Additional resources