Ir al contenido

Gravity

Esta página aún no está disponible en tu idioma.

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

Drops each element of the drawing onto a floor: the document’s bottom edge by default (inside a composition, that composition’s document), or Floor Object, at Floor position in fractions of the object’s box; Floor rotation is measured from the scene horizon. It runs in Physics’ live world, stepping forward from the previous frame, so what it drops may change while it falls (Noise, Partition Drift, an animated shape): the bodies follow instead of the fall being replayed. Elements are rigid bodies, or elastic with Soft Body or Cloth; they inherit velocity and spin from Explosion, Particles or Rigid Body, and Pin, Wind and Network links work as in Physics. Body collisions makes them push each other; Solids are fixed obstacles from other objects; Friction and Bounce apply to every contact. With Document → Walls the document’s edges hold them too. Rest after holds the world still once nothing has pushed it for that long, slowing it down over its last second. 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
floorAt enum "document" document, object not animatable; label: Floor
floor point [0.5,1.5] [x, y], fractions of the box (0–1), shown as percentages in the editor only when floorAt is object; 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
friction number 0.7 min 0, max 1, step 0.01 shown as a percentage in the editor (0.5 is 50 %)
bounce number 0.15 min 0, max 1, step 0.01 shown as a percentage in the editor (0.5 is 50 %)
settle number 0 min 0, max 120, step 0.5 unit: s; not animatable; group: Contacts; label: Rest after

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,
"floorAt": "document",
"floor": [
0.5,
1.5
],
"rotation": 0,
"collisions": false,
"solids": [],
"friction": 0.7,
"bounce": 0.15,
"settle": 0
}
}

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