Interface StaticRigidBody

interface StaticRigidBody {
    angle: number;
    center: Vector2;
    data: any;
    friction: number;
    id: number;
    permeability: number;
    restitution: number;
    shapes: Shape[];
    static: true;
    type: "BODY";
}

Hierarchy

  • BodyCore
    • StaticRigidBody

Properties

angle: number

The current angle of rotation of the body

center: Vector2

The center of the body

data: any

User data associated with the body

friction: number

The friction to apply for this body in a collision

id: number

The unique ID of this body

permeability: number

Permeability of the object - anything other than zero will stop collision response

restitution: number

The restitution to apply for this body in a collision

shapes: Shape[]
static: true
type: "BODY"

Discriminator