rhodonite
    Preparing search index...

    Type Alias PhysicsProperty

    Simplified physics property configuration for basic physics setup. type provides minimal interface for enabling physics on entities.

    type PhysicsProperty = {
        density: number;
        engine?: PhysicsEngineType;
        friction: number;
        move: boolean;
        restitution: number;
        use: boolean;
    }
    Index
    density: number

    density of the physics body, affecting its mass

    Physics engine to use.

    Rapier is always used. Omit this field.

    friction: number

    friction coefficient for surface interactions (0.0 to 1.0)

    move: boolean

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

    restitution: number

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

    use: boolean

    Whether physics simulation is enabled for the entity