mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 18:26:52 +08:00
21 lines
756 B
TypeScript
21 lines
756 B
TypeScript
|
|
/** Represents the result of casting a ray with the Line-of-sight behavior.
|
|
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/line-of-sight | ILOSBehaviorInstance documentation } */
|
|
declare class ILOSBehaviorRay
|
|
{
|
|
readonly didCollide: boolean;
|
|
readonly hitX: number;
|
|
readonly hitY: number;
|
|
getHitPosition(): Vec2Arr;
|
|
readonly hitDistance: number;
|
|
readonly hitUid: number;
|
|
getNormalX(length: number): number;
|
|
getNormalY(length: number): number;
|
|
getNormal(length: number): Vec2Arr;
|
|
readonly normalAngle: number;
|
|
getReflectionX(length: number): number;
|
|
getReflectionY(length: number): number;
|
|
getReflection(length: number): Vec2Arr;
|
|
readonly reflectionAngle: number;
|
|
}
|