Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BabylonRay

Index

Constructors

constructor

  • Parameters

    • context: Context

    Returns BabylonRay

Methods

createPickingRay

  • createPickingRay(): Ray
  • Creates a picking ray of the current mouse position in the active camera

    group

    create

    shortname

    create picking ray

    Returns Ray

    Ray

createRay

  • Create a ray that start at origin, has direction vector and optionally length

    group

    create

    shortname

    create custom ray

    Parameters

    Returns Ray

    ray

createRayFromTo

  • Create a ray from one point to another

    group

    create

    shortname

    create ray from to

    Parameters

    • inputs: FromToDto

      origin, direction and length

    Returns Ray

    ray

getDirection

  • Get the direction of the ray

    group

    get

    shortname

    get ray direction

    Parameters

    Returns Vector3

    direction vector

getLength

  • getLength(inputs: RayDto): number
  • Get the length of the ray

    group

    get

    shortname

    get ray length

    Parameters

    Returns number

    length

getOrigin

  • Get the origin of the ray

    group

    get

    shortname

    get ray origin

    Parameters

    Returns Point3

    origin point

Generated using TypeDoc