Type Alias PhysicsProperty

PhysicsProperty: {
    density: number;
    friction: number;
    move: boolean;
    restitution: number;
    use: boolean;
}

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

Type declaration

  • 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