org.jdesktop.wonderland.common.cell
Class AvatarBoundsHelper

java.lang.Object
  extended by org.jdesktop.wonderland.common.cell.AvatarBoundsHelper

public class AvatarBoundsHelper
extends java.lang.Object

Support methods for dealing with avatar bounds

Author:
paulby

Field Summary
static float AVATAR_CELL_SIZE
           
static float MAX_VIEW_DISTANCE
           
static float PROXIMITY_SIZE
           
 
Constructor Summary
AvatarBoundsHelper()
           
 
Method Summary
static com.jme.math.Matrix4f computeViewPlatformTransform(com.jme.math.Vector3f userPosition, com.jme.math.Vector3f direction, com.jme.math.Vector3f up)
          Compute and return the View Platform Transform3D give the users position, direction and up
static com.jme.bounding.BoundingVolume getCellBounds(com.jme.math.Vector3f center)
          Return the bounds of the avatar cell.
static com.jme.bounding.BoundingVolume getFrustumBounds(CellTransform avatarT3D)
          Returns the view frustum bounds.
static com.jme.bounding.BoundingSphere getProximityBounds(com.jme.math.Vector3f center)
          Returns the proximity bounds for the avatar with specified center
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVATAR_CELL_SIZE

public static float AVATAR_CELL_SIZE

PROXIMITY_SIZE

public static float PROXIMITY_SIZE

MAX_VIEW_DISTANCE

public static float MAX_VIEW_DISTANCE
Constructor Detail

AvatarBoundsHelper

public AvatarBoundsHelper()
Method Detail

getCellBounds

public static com.jme.bounding.BoundingVolume getCellBounds(com.jme.math.Vector3f center)
Return the bounds of the avatar cell.


getProximityBounds

public static com.jme.bounding.BoundingSphere getProximityBounds(com.jme.math.Vector3f center)
Returns the proximity bounds for the avatar with specified center


getFrustumBounds

public static com.jme.bounding.BoundingVolume getFrustumBounds(CellTransform avatarT3D)
Returns the view frustum bounds. This is computed from the values provided in the last computeViewPlatformTransform call


computeViewPlatformTransform

public static com.jme.math.Matrix4f computeViewPlatformTransform(com.jme.math.Vector3f userPosition,
                                                                 com.jme.math.Vector3f direction,
                                                                 com.jme.math.Vector3f up)
Compute and return the View Platform Transform3D give the users position, direction and up



Open Wonderland - http://openwonderland.org