@ujjwalvivek/tinyts
    Preparing search index...

    Interface ColliderEntry

    A collider entry for use with moveAABB. Wraps an AABB with an optional collision mask for layer-based filtering and material properties.

    interface ColliderEntry {
        aabb: AABB;
        friction?: number;
        mask?: number;
        restitution?: number;
    }
    Index

    Properties

    aabb: AABB

    Bounding box.

    friction?: number

    Friction coefficient in [0, 1]. 0 = no friction, 1 = full stop on contact.

    mask?: number

    Bitmask for layer-based collision filtering.

    restitution?: number

    Bounce coefficient in [0, 1]. 0 = no bounce (stop), 1 = perfect bounce.