@emile/engine / physics/raycast / RayCol
Class: RayCol
Defined in: src/physics/raycast.ts:50
Data type that contains information about an intersection between a ray and a body.
Constructors
new RayCol()
new RayCol(
body
,point
,normal
,verts
):RayCol
Defined in: src/physics/raycast.ts:64
Initializes a raycol object with the given data.
Parameters
body
The body that the ray has collided with.
point
vec2
The collision point.
normal
vec2
The normal of the edge that the ray collides with.
verts
vec2
[]
The vertices of the edge that the ray collides with.
Returns
RayCol
Properties
body
body:
TypedBody
Defined in: src/physics/raycast.ts:51
entity
entity:
string
Defined in: src/physics/raycast.ts:55
normal
normal:
Vec2
Defined in: src/physics/raycast.ts:53
point
point:
Vec2
Defined in: src/physics/raycast.ts:52
verts
verts:
Vec2
[]
Defined in: src/physics/raycast.ts:54