| org.jdesktop.j3dfly.utils.vpbehaviors.VPCollisionInterface
All known Subclasses: org.jdesktop.j3dfly.utils.vpbehaviors.VPDefaultCollision,
VPCollisionInterface | public interface VPCollisionInterface (Code) | | Interface for all collision detection implementations
|
addCollisionBG | public void addCollisionBG(BranchGroup bg)(Code) | | Add a BranchGroup to check for collision.
setCapabilites() should be called before the BranchGroup is
added.
Parameters: bg - BranchGroup to add to set of BranchGroups checked forcollision |
getCollisionBG | public BranchGroup getCollisionBG(int index)(Code) | | Get the BranchGroup at the specified index that is used for
collision detection
|
getCollisionBGCount | public int getCollisionBGCount()(Code) | | Get the number of collision BranchGroups that are checked for
collision
|
getCollisions | public SweptVolumeCollision getCollisions(Transform3D currentLocation, Transform3D nextLocation, Vector3f velocity, float roll, float pitch, float yaw)(Code) | | Check for collision when casting the swept volume from currentLocation to currentLocation
modified by the roll, pitch, yaw and velocity
nextLocation will return the next NON COLLISION location, this will be implementation dependent.
If collision occurred the data for all the collisions will be returned in
SweptVolumeCollision. If no collision occurred null will be returned.
|
getVPSweptVolume | public SweptVolume getVPSweptVolume()(Code) | | Get the SweptVolume used in collision calculations
|
setCapabilities | public void setCapabilities(BranchGroup branchGroup)(Code) | | Set the capabilities in the BranchGroup to allow this collision
detection to work. The branchGroup must not be live or compiled.
Parameters: branchGroup - Root of graph in which all necessary capabilitieswill be set |
setCollisionLocale | public void setCollisionLocale(Locale locale)(Code) | | Check for collision with all geometry in locale
Ensure the capability bits in each branchGraph are set correctly
by calling setCapabilities()
Parameters: locale - Collision detection will be performed on all geometry in the locale. See Also: setCapabilities( BranchGroup branchGroup ) |
setVPSweptVolume | public void setVPSweptVolume(SweptVolume volume)(Code) | | Set the SweptVolume to be used in collision calculations
|
|
|