| java.lang.Object org.jdesktop.j3dfly.utils.vpbehaviors.VPDefaultCollision org.jdesktop.j3dfly.utils.vpbehaviors.VPDriveCollision
VPDriveCollision | public class VPDriveCollision extends VPDefaultCollision (Code) | | A collision implementation that places the view a set distance above
the 'floor' and then applies collision detection.
The floor is determined as the first geometry that intersects the ray
(0,large +ve, 0) -> ( 0, -1, 0 )
author: Paul Byrne version: 1.4 01/18/02 |
VPDriveCollision | public VPDriveCollision(int mode)(Code) | | Creates new VPDriveCollision
|
VPDriveCollision | public VPDriveCollision()(Code) | | Creates new VPDriveCollision
|
getCollisions | public SweptVolumeCollision getCollisions(Transform3D currentLocation, Transform3D nextLocation, Vector3f velocity, float roll, float pitch, float yaw)(Code) | | Check for collision when casting the swept bounds from currentLocation to
nextLocation. The orientation of the swept bounds is set to the orientation at
nextLocation.
Also force the view to be the specified height above the floor.
This implementation only processes the first ray in each direction. It
also requires that a ray exists in each direction.
Parameters: currentLocation - The current location of the view Parameters: nextLocation - Will contain the next non collision location of the view on return Parameters: velocity - The current velocity vector for the view Parameters: roll - The change in roll for this frame Parameters: pitch - The change in pitch for this frame Parameters: yaw - The change in yaw for this frame |
getHeight | public float getHeight()(Code) | | Get the height the viewer is from the floor
|
setHeight | public void setHeight(float height)(Code) | | Set the height the viewer will be placed above the floor
|
Methods inherited from org.jdesktop.j3dfly.utils.vpbehaviors.VPDefaultCollision | public void addCollisionBG(BranchGroup bg)(Code)(Java Doc) protected PickResult checkDirection(Transform3D currentLocation, Transform3D nextLocation, Vector3f rayStart, Vector3f rayEnd, float stepSize)(Code)(Java Doc) protected boolean checkXDirection(Transform3D currentLocation, Transform3D destination, Vector3f velocity, SweptVolumeCollision ret)(Code)(Java Doc) protected boolean checkYDirection(Transform3D currentLocation, Transform3D destination, Vector3f velocity, SweptVolumeCollision ret)(Code)(Java Doc) protected boolean checkZDirection(Transform3D currentLocation, Transform3D destination, Vector3f velocity, SweptVolumeCollision ret)(Code)(Java Doc) public BranchGroup getCollisionBG(int index)(Code)(Java Doc) public int getCollisionBGCount()(Code)(Java Doc) public SweptVolumeCollision getCollisions(Transform3D currentLocation, Transform3D nextLocation, Vector3f velocity, float roll, float pitch, float yaw)(Code)(Java Doc) public SweptVolume getVPSweptVolume()(Code)(Java Doc) public void setCapabilities(BranchGroup branchGroup)(Code)(Java Doc) public void setCollisionLocale(Locale locale)(Code)(Java Doc) public void setVPSweptVolume(SweptVolume volume)(Code)(Java Doc)
|
|
|