DecayKnowledgebase
functiongenerated

Physics.set_slider_position_motor

Selects a damped force-based position motor on an authored slider owner. Target is finite signed anchor separation along the first body's local axis in world units without transform scale. Stiffness, damping and force cap must be finite and non-negative. Enabled travel limits still bound motion; zero force disables drive. Requires physics; validates before mutation, preserves unknown fields/body motion and applies at next synchronization even before bodies exist. Settings survive suspension/rebuilds. set_slider_motor selects velocity mode again.

Signature

Physics.set_slider_position_motor(joint: Entity, target_distance: number, stiffness: number, damping: number, max_force: number) -> unit

Member of Physics

Related types

Entity

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