INNER CODE UNIT · TypeScript
RaycastResult
GameFrameX/GameFrameX · LayaBox/engine/types/cannon.d.ts:122
export class RaycastResult {
rayFromWorld: Vec3;
rayToWorld: Vec3;
hitNormalWorld: Vec3;
hitPointWorld: Vec3;
hitFaceIndex: number;
hasHit: boolean;
shape: Shape;
body: Body;
distance: number;
abort(): void;
reset(): void;
set(rayFromWorld: Vec3, rayToWorld: Vec3, hitNormalWorld: Vec3, hitPointWorld: Vec3, shape: Shape, body: Body, distance: number): void;
}