Bitbybit Docs
    Preparing search index...

    Class BaseRayDto (Inputs.BabylonRay)

    Feeds babylon.ray.createRay with where a ray starts, which way it points and, optionally, how far it reaches.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalorigin: Point3
      • Optionaldirection: Vector3
      • Optionallength: number

      Returns BaseRayDto

    Properties

    origin: Point3

    The point the ray starts from

    direction: Vector3

    The way the ray points, as [x, y, z]

    length?: number

    How far the ray reaches, in scene units; 0 or left out makes it unlimited

    true