rhodonite
    Preparing search index...

    Type Alias PhysicsProperty

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

    type PhysicsProperty = {
        density: number;
        friction: number;
        move: boolean;
        restitution: number;
        use: boolean;
    }
    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

    restitution: number

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

    use: boolean

    Whether physics simulation is enabled for this entity