Skip to content
Konjure / spatial intelligence

Force

← Builtin reference

A world-space force applied every fixed physics tick.

Signature

type Force { value: Vec3 = Vec3 {}; }

The physics adapter applies it only to a dynamic RigidBody and reapplies the current value on each fixed step. Attaching Force without such a body is rejected.

Fields

value: Vec3
Force vector in newtons; defaults to zero and requires a dynamic RigidBody.
DefaultVec3 {}

Examples

Apply force on fixed ticks

The second callback observes movement produced by the first fixed integration step; the force remains attached for later steps.

Press Step 2 times to reach the checked result.

Tick 0 · 0.00 sThis device
main.kj⌘ / Ctrl + Enter
Loading…Drag to orbit · select to inspect
0 entities
Loading the language runtime…
Output 0
No output.
Expected output
true

Rust definition

Interpreter RecordValue force schema consumed by the physics adapter.

See also