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
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
| Property | Description | Range | Default |
|---|---|---|---|
| Motion | Slide back and forth, or turn in place. | Back And Forth | |
| Offset | Back and forth: how far the platform travels from where it starts, metres. | (0, 0, 6) | |
| Speed | Back and forth: speed, m/s. | 0.01 or more | 2 |
| Pause | Back and forth: seconds to wait at each end. | 0 or more | 1 |
| Degrees Per Second | Turn: degrees per second around the platform's up axis. | 30 |