Skip to content
Konjure / spatial intelligence

Impulse

← Builtin reference

A world-space impulse consumed once by physics reconciliation.

Signature

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

The physics adapter accepts it only with a dynamic RigidBody, applies it once, then resets value to zero. Attaching Impulse without such a body is rejected.

Fields

value: Vec3
Impulse vector in newton-seconds; defaults to zero and requires a dynamic RigidBody.
DefaultVec3 {}

Examples

Apply one impulse

The second callback observes movement from the first integration step, after which the adapter has consumed the impulse.

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 impulse schema consumed by the physics adapter.

See also