Class PickingInfo
Hierarchy
- PickingInfo
Index
Properties
buSearch playground for bu
(See getTextureCoordinates) The barycentric U coordinate that is used when calculating the texture coordinates of the collision.
bvSearch playground for bv
(See getTextureCoordinates) The barycentric V coordinate that is used when calculating the texture coordinates of the collision.
distanceSearch playground for distance
Distance away where the pick collided
face IdSearch playground for faceId
The index of the face on the mesh that was picked, or the index of the Line if the picked Mesh is a LinesMesh
hitSearch playground for hit
If the pick collided with an object
origin MeshSearch playground for originMesh
If a mesh was used to do the picking (eg. 6dof controller) this will be populated.
picked MeshSearch playground for pickedMesh
The mesh corresponding the the pick collision
picked PointSearch playground for pickedPoint
The location of pick collision
picked SpriteSearch playground for pickedSprite
If a sprite was picked, this will be the sprite the pick collided with
raySearch playground for ray
The ray that was used to perform the picking.
sub Mesh Face IdSearch playground for subMeshFaceId
The index of the face on the subMesh that was picked, or the index of the Line if the picked Mesh is a LinesMesh
sub Mesh IdSearch playground for subMeshId
Id of the the submesh that was picked
thin Instance IndexSearch playground for thinInstanceIndex
If we are pikcing a mesh with thin instance, this will give you the picked thin instance
Methods
get NormalSearch playground for getNormal
-
Gets the normal correspodning to the face the pick collided with
Parameters
-
Optional useWorldCoordinates: boolean
If the resulting normal should be relative to the world (default: false)
-
Optional useVerticesNormals: boolean
If the vertices normals should be used to calculate the normal instead of the normal map
Returns Nullable<Vector3>
The normal correspodning to the face the pick collided with
-
Information about the result of picking within a scene
https://doc.babylonjs.com/babylon101/picking_collisions