rhodonite
    Preparing search index...

    Type Alias PhysicsPropertyInner

    Internal physics property configuration containing detailed shape and physics parameters. This type defines the complete set of properties needed for physics simulation.

    type PhysicsPropertyInner = {
        density: number;
        friction: number;
        move: boolean;
        position: IVector3;
        restitution: number;
        rotation: IVector3;
        size: IVector3;
        type: PhysicsShapeTypeEnum;
    }
    Index

    Properties

    density: number

    The density of the physics body, affecting its mass

    friction: number

    The friction coefficient for surface interactions (0.0 to 1.0)

    move: boolean

    Whether the physics body can move (dynamic) or is static

    position: IVector3

    The position offset of the physics shape relative to the entity

    restitution: number

    The restitution (bounciness) coefficient for collisions (0.0 to 1.0)

    rotation: IVector3

    The rotation of the physics shape in Euler angles

    size: IVector3

    The size/dimensions of the physics shape in 3D space

    The type of physics shape (box, sphere, capsule, etc.)