Class RayHelper
Hierarchy
- RayHelper
Index
Constructors
constructor
Properties
raySearch playground for ray
Defines the ray we are currently tryin to visualize.
Methods
attach To MeshSearch playground for attachToMesh
Attach a ray helper to a mesh so that we can easily see its orientation for instance or information like its normals.
Parameters
mesh: AbstractMesh
Defines the mesh we want the helper attached to
Optional meshSpaceDirection: Vector3
Defines the direction of the Ray in mesh space (local space of the mesh node)
Optional meshSpaceOrigin: Vector3
Defines the origin of the Ray in mesh space (local space of the mesh node)
Optional length: number
Defines the length of the ray
Returns void
detach From MeshSearch playground for detachFromMesh
Detach the ray helper from the mesh it has previously been attached to.
Returns void
disposeSearch playground for dispose
Dispose the helper and release its associated resources.
Returns void
hideSearch playground for hide
Hides the ray we are debugging.
Returns void
As raycast might be hard to debug, the RayHelper can help rendering the different rays in order to better appreciate the issue one might have.
https://doc.babylonjs.com/babylon101/raycasts#debugging