DecayKnowledgebase
functiongenerated

Physics3d.set_distance

Tunes the length of an authored 3D distance joint (a rope) for the next fixed synchronization: shorten it step by step to reel a body in. Distance must be finite and positive. Works while suspended or before endpoints are built; keeps the solver constraint, its anchors and body motion. Requires 3D physics and a sindri.physics3d.distance_joint on the owner.

Signature

Physics3d.set_distance(joint: Entity, max_distance: number) -> unit

Member of Physics3d

Related types

Entity

Source
docs/generated/decay-api.json
Schema
v1
Engine version
0.1.0
Source commit
909aca81368b