Moving parts
A moving part is a set of Blocks that Logic moves between a start and an end.
Making a moving part
Select the Blocks inside a model, then and choose Make dynamic → Moving part.
Or use Add → Moving part in the Logic drawer, or Add capability → Moving part in the Inspector. A prop becomes one with Body → Moving.
What cannot move
Stairs, Blocks that cut (Subtract or Intersect), prefab instances and whole models cannot be made dynamic. Select the Blocks inside the model.
Setting the end
Select the moving part to see a ghost at its end position in the 3D view.
| Setting | Default | Effect |
|---|---|---|
| End position X, Y, Z | 0, 2, 0 m | How far it moves |
| End turn X, Y, Z | 0° | How far it turns, in 15° steps |
| Lighting | Probe-lit | Probe-lit lights it as it moves. Baked at rest bakes it where it starts |
Set the length of a move with Over on the node.
Moving it from a graph
These nodes are in Objects, under Moving parts. Arrives is in When.
| Node | Action |
|---|---|
| Move to | Moves it to start, end, the other end or a marker, Over a number of seconds. Ease is steady, smooth, speeding up or slowing down |
| Move by | Moves it a distance in a direction, once or back and forth |
| Turn | Turns it by a number of degrees around up, forward of or right of |
| Spin | Keeps it turning at a set speed |
| Stop | Stops it moving and turning, moving only or turning only |
| Move along path | Moves it along a Marker path once, back and forth or round and round |
| Arrives | Starts a chain when it arrives at the start, at the end or at either end |
They target this object unless you set another. The graph can be on the part or on the button that moves it.
A player standing on a moving part is carried with it. Moving parts do not push players.