Fixed-step world runtime, event bus wire protocol between lanes, integration seam (game.ts) with placeholder ball. Lanes A/B/C own disjoint dirs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
import { Collider } from "./collider";
|
|
import { Vector } from "../math";
|
|
import { RawPointColliderProjection, RawPointProjection } from "../raw";
|
|
import { FeatureType } from "./feature";
|
|
import { ColliderSet } from "./collider_set";
|
|
/**
|
|
* The projection of a point on a collider.
|
|
*/
|
|
export declare class PointProjection {
|
|
/**
|
|
* The projection of the point on the collider.
|
|
*/
|
|
point: Vector;
|
|
/**
|
|
* Is the point inside of the collider?
|
|
*/
|
|
isInside: boolean;
|
|
constructor(point: Vector, isInside: boolean);
|
|
static fromRaw(raw: RawPointProjection): PointProjection;
|
|
}
|
|
/**
|
|
* The projection of a point on a collider (includes the collider handle).
|
|
*/
|
|
export declare class PointColliderProjection {
|
|
/**
|
|
* The collider hit by the ray.
|
|
*/
|
|
collider: Collider;
|
|
/**
|
|
* The projection of the point on the collider.
|
|
*/
|
|
point: Vector;
|
|
/**
|
|
* Is the point inside of the collider?
|
|
*/
|
|
isInside: boolean;
|
|
/**
|
|
* The type of the geometric feature the point was projected on.
|
|
*/
|
|
featureType: FeatureType;
|
|
/**
|
|
* The id of the geometric feature the point was projected on.
|
|
*/
|
|
featureId: number | undefined;
|
|
constructor(collider: Collider, point: Vector, isInside: boolean, featureType?: FeatureType, featureId?: number);
|
|
static fromRaw(colliderSet: ColliderSet, raw: RawPointColliderProjection): PointColliderProjection;
|
|
}
|