rhodonite
    Preparing search index...

    Type Alias PhysicsPropertyInner

    Internal physics property configuration containing detailed shape physics parameters. type defines complete set properties needed physics simulation.

    Use ShapeComponent with PhysicsBodyProperty and PhysicsColliderProperty.

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

    density of the physics body, affecting its mass

    friction: number

    friction coefficient for surface interactions (0.0 to 1.0)

    move: boolean

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

    position: IVector3

    position offset of physics shape relative to entity

    restitution: number

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

    rotation: IVector3

    rotation of physics shape in Euler angles

    size: IVector3

    size/dimensions of physics shape in 3D space

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