Options
All
  • Public
  • Public/Protected
  • All
Menu
Logo of bit by bit developers

Class BabylonPick

Hierarchy

  • BabylonPick

Index

Constructors

constructor

  • Parameters

    • context: Context

    Returns BabylonPick

Methods

getBU

  • Gets the the barycentric U coordinate that is used when calculating the texture coordinates of the collision

    Parameters

    Returns number

    U coordinate

getBV

  • Gets the the barycentric V coordinate that is used when calculating the texture coordinates of the collision

    Parameters

    Returns number

    V coordinate

getDistance

  • Get the distance to the object if picking result exists

    Parameters

    Returns number

    Distance

getPickedMesh

  • getPickedMesh(inputs: PickInfo): AbstractMesh
  • Get the picked mesh

    Parameters

    Returns AbstractMesh

    Picked mesh

getPickedPoint

  • getPickedPoint(inputs: PickInfo): Point3
  • Get the picked point

    Parameters

    Returns Point3

    Picked point

getPickedSprite

  • getPickedSprite(inputs: PickInfo): Sprite
  • Get the picked sprite

    Parameters

    Returns Sprite

    Picked sprite

getSubMeshFaceId

  • getSubMeshFaceId(inputs: PickInfo): number
  • Gets the unique submesh face id if it was picked

    Parameters

    Returns number

    Submesh face id

getSubMeshId

  • getSubMeshId(inputs: PickInfo): number
  • Gets the unique submesh id if it was picked

    Parameters

    Returns number

    Submesh id

hit

  • Check if pick ray hit something in the scene or not

    Parameters

    Returns boolean

    Indication of a hit

pickWithPickingRay

  • pickWithPickingRay(): PickingInfo
  • Pick with picking ray of the current mouse position in the active camera

    Returns PickingInfo

    Picking info

pickWithRay

  • pickWithRay(inputs: RayDto): PickingInfo
  • Get a hit result of picking with ray

    Parameters

    • inputs: RayDto

      ray to use for picking

    Returns PickingInfo

    Picking info

Generated using TypeDoc