Type alias CollisionPayload

CollisionPayload: {
    collider: RapierCollider;
    colliderObject?: Object3D;
    other: CollisionTarget;
    rigidBody?: RapierRigidBody;
    rigidBodyObject?: Object3D;
    target: CollisionTarget;
}

Type declaration

  • collider: RapierCollider

    deprecated use payload.other.collider instead

  • Optional colliderObject?: Object3D

    deprecated use payload.other.colliderObject instead

  • other: CollisionTarget

    the other object involved in the event

  • Optional rigidBody?: RapierRigidBody

    deprecated use payload.other.rigidBody instead

  • Optional rigidBodyObject?: Object3D

    deprecated use payload.other.rigidBodyObject instead

  • target: CollisionTarget

    the object firing the event

Generated using TypeDoc