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
RaycastResult
Class RaycastResult
Hierarchy
RaycastResult
Index
Constructors
constructor
Properties
body
face
Index
fraction
is
Stopped
normal
shape
Methods
get
Hit
Distance
get
Hit
Point
has
Hit
reset
set
should
Stop
stop
Constructors
constructor
new
Raycast
Result
(
)
:
RaycastResult
Returns
RaycastResult
Properties
Optional
body
body
:
any
face
Index
face
Index
:
number
= -1
fraction
fraction
:
number
= -1
is
Stopped
is
Stopped
:
boolean
= false
Readonly
normal
normal
:
Vector2
= ...
Optional
shape
shape
:
any
Methods
get
Hit
Distance
get
Hit
Distance
(
ray
:
RayCast2D
)
:
number
Parameters
ray:
RayCast2D
Returns
number
get
Hit
Point
get
Hit
Point
(
ray
:
RayCast2D
)
:
SimpleVector2
Parameters
ray:
RayCast2D
Returns
SimpleVector2
has
Hit
has
Hit
(
)
:
boolean
Returns
boolean
reset
reset
(
)
:
void
Returns
void
set
set
(
normal
:
SimpleVector2
, shape
:
any
, body
:
any
, fraction
:
number
, faceIndex
:
number
)
:
void
Parameters
normal:
SimpleVector2
shape:
any
body:
any
fraction:
number
faceIndex:
number
Returns
void
should
Stop
should
Stop
(
ray
:
RayCast2D
)
:
boolean
Parameters
ray:
RayCast2D
Returns
boolean
stop
stop
(
)
:
void
Returns
void
Modules
physics/objects/2d/ray-
2d
Ray
Mode
Ray2D
Ray
Cast2D
Raycast
Result
constructor
body
face
Index
fraction
is
Stopped
normal
shape
get
Hit
Distance
get
Hit
Point
has
Hit
reset
set
should
Stop
stop
Generated using
TypeDoc