CLASSES
TagsA - Z

PickingInfo

Description

class PickingInfo

Get information of picking element by click

Members

hit : boolean

True if you touch something, false otherwise.

distance : number

Represents the distance between the screen the click on the mesh

pickedPoint : Vector3

The picked point

pickedMesh : AbstractMesh

The picked abstractMesh

bu : number

Coordinates texture of the mesh represents the x axis

bv : number

Coordinates texture of the mesh represents the y axis

faceId : number

The faceId of the mesh

subMeshId : number

pickedSprite : Sprite

Methods

getNormal(useWorldCoordinates, useVerticesNormals) Vector3

Parameters

Name Type Description
optional useWorldCoordinates boolean
optional useVerticesNormals boolean

getTextureCoordinates() Vector2