Table Of Contents

Previous topic

util.Vec3

This Page

visible

Constructor

class visible()

Methods

checkEqual(Visible)
Arguments:
  • Visible – object.
Returns:

Returns true if the visible objects correspond to the same presence in the virtual world.

dist()
Arguments:
  • Vec3.
Returns:

Number.

Returns the distance from this visible object to the position specified by first argument vector.

getAnimationList()
Returns:An array of strings, where each string is the name of an animation that is supported by this visible’s mesh.
getMesh()
Returns:A string corresponding to the URI for your current mesh. Can pass this uri to setMesh functions on your own presences, but cannot set mesh directly on a visible.
getOrientation()
Returns:Quaternion associated with visible object’s orientation.

Note: the returned value may be stale if the visible object is far away from you.

getOrientationVel()
Returns:Angular velocity of visible object (rad/s).

Note: the returned value may be stale if the visible object is far away from you.

getPosition()
Returns:Vec3 associated with the position of this visible object.

Note: the returned value may be stale if the visible object is far away from you.

getScale()
Returns:Number associated with how large the visible object is compared to the mesh it came from.
getSpaceID()
Returns:Returns the identifier for the space that the visible is in.
getStillVisible()
Returns:Boolean. If true, positions and velocities for this visible object are automatically being updated by the system.
getVelocity()
Returns:Number associated with the velocity at which this visible object is travelling.

Note: the returned value may be stale if the visible object is far away from you.

getVisibleID()
Returns:Returns the identifier for the visible in the space that it’s in.
toString()
returns:a unique string identifier for this
visible.
rtype:string

Get a string representation of this visible – a combination of the space and object identifiers which uniquely identify it.