babylon.quarks - v1.0.0
    Preparing search index...

    Interface ApplyCollisionJSON

    The JSON of a collision: a ApplyCollision.

    interface ApplyCollisionJSON {
        bounce?: number;
        dampen?: number;
        lifetimeLoss?: number;
        planes?: CollisionPlaneJSON[];
        radiusScale?: number;
        type: string;
    }

    Hierarchy (View Summary)

    Index
    bounce?: number

    The share of the speed into the surface kept on a bounce; 1 when absent.

    dampen?: number

    The share of speed lost on each hit; 0 when absent.

    lifetimeLoss?: number

    The share of its lifetime a particle loses on each hit; 0 when absent.

    planes?: CollisionPlaneJSON[]

    The collision planes, in the emitter's local space; none when absent.

    radiusScale?: number

    The collision radius as a share of half the particle's size, against planes; 1 when absent.

    type: string

    The behavior's type, a key of BehaviorTypes.