Class PhysicsRaycastResult
Hierarchy
- PhysicsRaycastResult
Index
Constructors
constructor
Returns PhysicsRaycastResult
Accessors
has Hit
Gets if there was a hit
Returns boolean
hit Distance
Gets the distance from the hit
Returns number
hit Normal World
Gets the hit normal/direction in the world
Returns Vector3
hit Point World
Gets the hit point in the world
Returns Vector3
ray From World
Gets the ray "start point" of the ray in the world
Returns Vector3
ray To World
Gets the ray "end point" of the ray in the world
Returns Vector3
Methods
calculate Hit DistanceSearch playground for calculateHitDistance
Calculates the distance manually
Returns void
resetSearch playground for reset
set Hit DataSearch playground for setHitData
set Hit DistanceSearch playground for setHitDistance
Sets the distance from the start point to the hit point
Parameters
distance: number
Returns void
Holds the data for the raycast result
https://doc.babylonjs.com/how_to/using_the_physics_engine