Interface PhysicsObject

interface PhysicsObject {
    aabb: AABB;
    isContainer?: boolean;
    rebound?: number;
    uuid: string;
    velocity: Vec2;
}

Properties

aabb: AABB
isContainer?: boolean

Set to true if the PhysicsObject should act as a container for other objects to not escape from A container is always consider as a static entity at the moment, i.e. its movement will be not taken into account in the physx math and could case janky results

false
rebound?: number

The rebound of the object when colliding with other objects

1
uuid: string

The unique id of the object. Use it to identify with wich objects the collision is happening

velocity: Vec2

The velocity of a physics object