import { Vertex2D } from '../math/vertex2d'; import { Vertex3D } from '../math/vertex3d'; import { Ball } from '../vpt/ball/ball'; import { HitObject } from './hit-object'; export declare class CollisionEvent { private static readonly POOL; /** * The ball that collided with something */ ball: Ball; /** * What the ball collided with */ obj?: HitObject; /** * Set to true if impact velocity is ~0 */ isContact: boolean; /** * When the collision happens (relative to current physics state) */ hitTime: number; /** * Hit distance */ hitDistance: number; /** * Additional collision information */ readonly hitNormal: Vertex3D; /** * Only "correctly" used by plunger and flipper */ hitVel: Vertex2D; /** * Only set if isContact is true */ hitOrgNormalVelocity: number; /** * Currently only one bit is used (hitmoment == 0 or not) */ hitMomentBit: boolean; /** * UnHit signal/direction of hit/side of hit (spinner/gate) */ hitFlag: boolean; constructor(ball?: Ball); static claim(ball: Ball): CollisionEvent; static release(...events: CollisionEvent[]): void; static reset(event: CollisionEvent): void; clear(): void; set(coll: CollisionEvent): this; }