Selectables
Index
Methods
attach
Attaches custom BabylonJS meshes so they can be “picked”.
Parameters
mesh: Mesh | Icon
optionalo: AttachOption
Returns number
detach
Detaches a previously attached BabylonJS mesh from “pick” operations.
Parameters
mesh: Mesh | Icon
Returns boolean
getVisiblesInSight
Renders objects and checks which objects are in sight from given camera.
Parameters
optionalo: GetVisibleInSightOptions
Returns VisibleSelectable[]
idOf
Get unique “pick” id of mesh or icon. It is only valid as long as the item has been registered with attach. It will be 0 if not attached.
Parameters
meshOrIcon: Mesh | Icon
mesh or icon to get id for.
Returns number
0 if not attached, otherwise unique “pick” id.
pick
Performs an intersection test in the world (finds objects below a specific screen coordinate or that intersect a ray).
Parameters
o: PickOption
Options to use for pick operation.
Returns PickResult
Intersection information.
Methods and properties related to gpu picking. Basically “given a rendered pixel what object does that pixel represent”.