import { EventProxy } from '../../game/event-proxy'; import { PlayerPhysics } from '../../game/player-physics'; import { Vertex3D } from '../../math/vertex3d'; import { CollisionEvent } from '../../physics/collision-event'; import { HitObject } from '../../physics/hit-object'; import { TableData } from '../table/table-data'; import { Ball } from './ball'; import { BallData } from './ball-data'; import { BallMover } from './ball-mover'; import { BallState } from './ball-state'; /** * In the VP source code this is all part of ball.cpp. We'll try * to separate this more and see how far we get. */ export declare class BallHit extends HitObject { readonly coll: CollisionEvent; rcHitRadiusSqr: number; vpVolObjs: EventProxy[]; private readonly id; private readonly data; private readonly state; private readonly mover; private readonly tableData; readonly vel: Vertex3D; readonly angularMomentum: Vertex3D; invMass: number; inertia: number; eventPos: Vertex3D; angularVelocity: Vertex3D; private playfieldReflectionStrength; private reflectionEnabled; private forceReflection; isVisible: boolean; private defaultZ; /** * Creates a new ball hit. * * @param ball Reference to ball * @param data Static ball data * @param state Dynamic ball state * @param initialVelocity Initial velocity * @param tableData Table data * @see void Ball::Init(const float mass) */ constructor(ball: Ball, data: BallData, state: BallState, initialVelocity: Vertex3D, tableData: TableData); isRealBall(): boolean; calcHitBBox(): void; getMoverObject(): BallMover; hitTest(ball: Ball, dTime: number, coll: CollisionEvent): number; collide(coll: CollisionEvent, physics: PlayerPhysics): void; collide3DWall(hitNormal: Vertex3D, elasticity: number, elasticityFalloff: number, friction: number, scatterAngle: number): void; surfaceVelocity(surfP: Vertex3D, recycle?: boolean): Vertex3D; /** @deprecated use {@link applySurfaceImpulseAndRelease()} */ applySurfaceImpulse(rotI: Vertex3D, impulse: Vertex3D, recycle?: boolean): void; applySurfaceImpulseAndRelease(rotI: Vertex3D, impulse: Vertex3D): void; handleStaticContact(coll: CollisionEvent, friction: number, dTime: number, physics: PlayerPhysics): void; applyFriction(hitNormal: Vertex3D, dtime: number, fricCoeff: number, physics: PlayerPhysics): void; surfaceAcceleration(surfP: Vertex3D, physics: PlayerPhysics, recycle?: boolean): Vertex3D; setMass(mass: number): void; setRadius(radius: number): void; }