download
raw
1.43 kB
import { Collider } from "./collider";
import { Vector } from "../math";
import { RawShapeTOI, RawShapeColliderTOI } from "../raw";
import { ColliderSet } from "./collider_set";
/**
* The intersection between a ray and a collider.
*/
export declare class ShapeTOI {
/**
* The time of impact of the two shapes.
*/
toi: number;
/**
* The local-space contact point on the first shape, at
* the time of impact.
*/
witness1: Vector;
/**
* The local-space contact point on the second shape, at
* the time of impact.
*/
witness2: Vector;
/**
* The local-space normal on the first shape, at
* the time of impact.
*/
normal1: Vector;
/**
* The local-space normal on the second shape, at
* the time of impact.
*/
normal2: Vector;
constructor(toi: number, witness1: Vector, witness2: Vector, normal1: Vector, normal2: Vector);
static fromRaw(colliderSet: ColliderSet, raw: RawShapeTOI): ShapeTOI;
}
/**
* The intersection between a ray and a collider.
*/
export declare class ShapeColliderTOI extends ShapeTOI {
/**
* The handle of the collider hit by the ray.
*/
collider: Collider;
constructor(collider: Collider, toi: number, witness1: Vector, witness2: Vector, normal1: Vector, normal2: Vector);
static fromRaw(colliderSet: ColliderSet, raw: RawShapeColliderTOI): ShapeColliderTOI;
}

Xet Storage Details

Size:
1.43 kB
·
Xet hash:
ad3b0159c49136064f925b19972da70ce31ed8a6a5a21d58d2f21fc25aaa68ac

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.