Davide Tantillo 93c56d08d0 c3 backup
2025-11-03 15:16:29 +01:00

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;
}