Skip to content

Gravity

type: "gravity" · Effector: acts per element (letters, copies, pieces…), usually through nested effects. · Editor menu: Effect.

Drops each element onto a virtual floor, rigid by default or elastic when it carries Soft Body material, inheriting velocity and spin from Explosion or Rigid Body. Enable Collisions for piece-to-piece contacts; select Solids to collide with other objects as fixed obstacles. If the input exceeds 512 paths, Gravity combines it into one simplified body and disables body and Solid collisions, reporting a diagnostic so playback stays responsive. Friction and Bounce apply to all contacts. Only the exterior of each shape collides (letter counters and holes are solid), while gaps between disconnected filled shapes stay open. For hollow obstacles that contain bodies, use Physics. Targets use their current-frame geometry throughout the replay, not their past movement. Floor rotation is measured from the scene horizon, independently of the object or parent rotation. Crosshatch lines collide with Solids and the Floor consistently: Merge on keeps one body across colours; off, each stroke is independent. Initially crossed line pairs start colliding only after separating, so playback does not eject the screen at startup. Other ordinary open paths retain floor-only dynamics. Cached deterministic simulation, up to 3600 seconds. Inside a group with Physics it does not simulate on its own: it adds its pull and floor to that Physics, for the bodies it is on.

Param Type Default Range Notes
time number 1 min 0, max 3600, step 0.01 left out, it follows scene.time; label: Time (s)
gravity number 1 min 0, max 10, step 0.01 fraction of the drawing size
floor point [0.5,1.5] [x, y], fractions of the box (0–1) label: Floor position
rotation angle 0 degrees label: Floor rotation
collisions boolean false not animatable; group: Contacts; label: Body collisions
solids nodes [] array of node ids not animatable; group: Contacts
physics boolean true not animatable; label: Rigid bodies
friction number 0.7 min 0, max 1, step 0.01
bounce number 0.15 min 0, max 1, step 0.01

Missing parameters take their default. Numbers and angles (and points and colours) can be animated with a track { on: "modifier", modifier: "<id>", param: "<name>" } unless noted.

Inside a node’s stack (effects run top to bottom):

{
"id": "gravity-1",
"type": "gravity",
"params": {
"time": {
"$expr": "scene.time",
"fallback": 1
},
"gravity": 1,
"floor": [
0.5,
1.5
],
"rotation": 0,
"collisions": false,
"solids": [],
"physics": true,
"friction": 0.7,
"bounce": 0.15
}
}

Generated from the schema of @svertik/engine. See the index.