API

Class RayHelper

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.

Index

Defines the ray we are currently trying to visualize.

  • 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

    • OptionalmeshSpaceDirection: Vector3

      Defines the direction of the Ray in mesh space (local space of the mesh node)

    • OptionalmeshSpaceOrigin: Vector3

      Defines the origin of the Ray in mesh space (local space of the mesh node)

    • Optionallength: number

      Defines the length of the ray

    Returns void