dacha
    Preparing search index...

    Interface RigidBodyConfig

    Options for RigidBody.

    Index
    angularDamping?: number

    Angular damping used to slow down rotation over time

    disabled: boolean

    Whether rigid body simulation is disabled

    friction?: number

    Surface friction used by contact resolution. Higher values reduce sliding more strongly.

    gravityScale?: number

    Gravity multiplier. 0 ignores gravity, 1 uses normal world gravity.

    linearDamping?: number

    Linear damping used to slow down movement over time

    lockRotation?: boolean

    Whether dynamic rotation is locked. Locked bodies do not spin from torque or contacts.

    mass?: number

    Sets the mass used by dynamic bodies.

    Mass is an authored, kilogram-like scalar. Non-positive values make the body immovable by forces and impulses.

    oneWay: boolean

    Whether contacts should only be resolved from one side

    oneWayNormal?: Point

    Local-space normal that points toward the blocking side

    restitution?: number

    Bounciness used by contact resolution. 0 does not bounce, 1 keeps full bounce speed.

    type: "dynamic" | "static" | "kinematic"

    Body type that defines how the rigid body participates in simulation