Class: VisibilityHelper

VisibilityHelper()

Helper class, provides mesh visibility methods.

Constructor

new VisibilityHelper()

Source:

Classes

VisibilityHelper

Methods

getVisibleAvatars()

Traverses VRObject scene, and returns visible avatars.
Source:

getVisibleObjects()

Traverses scene root nodes, and returns visible objects.
Source:

getVisibleOf()

Traverses give babyolonjs node array, and returns visible nodes
Source:

getVisibleUsers()

Traverses given User array, and returns array of visible User objects
Source:

isClosestMesh()

Casts a ray from the camera to the point, and returns true if the mesh is hit. Mesh may be root node of the scene, or any mesh in the scene.
Source:

isVisible(target, confidenceopt, offsetopt)

Returns true if target mesh is visible, performs least expensive checks first, then more expensive ones. It's supposed to test multiple points of the mesh, tests only one for the time being. Calls this.isClosestMesh to determine visibility.
Parameters:
Name Type Attributes Default Description
target babylonjs mesh to test for visibility
confidence number <optional>
1 minimum number of points required to be visible
offset Vector3 <optional>
new BABYLON.Vector3(0,0,0) offset to add to mesh position before testing
Source: