Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
physics/objects/2d/ray-2d
RayCast2D
Class RayCast2D
Hierarchy
RayCast2D
Index
Constructors
constructor
Properties
callback
check
Collision
Response
collision
Group
collision
Mask
mode
ray
skip
Backfaces
Accessors
direction
from
to
Methods
report
Intersection
Constructors
constructor
new
Ray
Cast2D
(
ray
:
Ray2D
)
:
RayCast2D
Parameters
ray:
Ray2D
Returns
RayCast2D
Properties
Optional
callback
callback
:
(
arg
:
any
)
=>
any
Type declaration
(
arg
:
any
)
:
any
Parameters
arg:
any
Returns
any
check
Collision
Response
check
Collision
Response
:
boolean
= true
collision
Group
collision
Group
:
number
= -1
collision
Mask
collision
Mask
:
number
= -1
mode
mode
:
RayMode
= ...
Readonly
ray
ray
:
Ray2D
skip
Backfaces
skip
Backfaces
:
boolean
= false
Accessors
direction
get
direction
(
)
:
SimpleVector2
Returns
SimpleVector2
from
get
from
(
)
:
SimpleVector2
Returns
SimpleVector2
to
get
to
(
)
:
SimpleVector2
Returns
SimpleVector2
Methods
report
Intersection
report
Intersection
(
result
:
RaycastResult
, fraction
:
number
, normal
:
SimpleVector2
, faceIndex
:
number
)
:
void
Parameters
result:
RaycastResult
fraction:
number
normal:
SimpleVector2
faceIndex:
number
Returns
void
Modules
physics/objects/2d/ray-
2d
Ray
Mode
Ray2D
Ray
Cast2D
constructor
callback
check
Collision
Response
collision
Group
collision
Mask
mode
ray
skip
Backfaces
direction
from
to
report
Intersection
Raycast
Result
Generated using
TypeDoc