rhodonite
    Preparing search index...

    Type Alias PhysicsMotionProperty

    Properties shared by all colliders belonging to one rigid body.

    type PhysicsMotionProperty = {
        angularVelocity?: IVector3;
        centerOfMass?: IVector3;
        gravityFactor?: number;
        inertiaDiagonal?: IVector3;
        inertiaOrientation?: IQuaternion;
        isKinematic?: boolean;
        linearVelocity?: IVector3;
        mass?: number;
        move: boolean;
    }
    Index
    angularVelocity?: IVector3

    Initial angular velocity expressed in the entity's local axes, in radians per second.

    centerOfMass?: IVector3

    Center of mass expressed in the entity's local space.

    gravityFactor?: number

    Multiplier applied to the world's gravity for this body.

    inertiaDiagonal?: IVector3

    Principal angular inertia values expressed in kg*m^2. Zero means infinite inertia on that axis.

    inertiaOrientation?: IQuaternion

    Rotation from the principal inertia axes to the entity's local axes.

    isKinematic?: boolean

    Whether a moving body is position-based kinematic instead of dynamic.

    linearVelocity?: IVector3

    Initial linear velocity expressed in the entity's local axes.

    mass?: number

    Explicit total mass in kilograms. Omit to derive mass from collider density.

    move: boolean

    Whether the simulation may move the body. False creates a fixed body.