com.jme3.collision
Interface Collidable
- All Known Implementing Classes:
- AbstractTriangle, AssetLinkNode, AudioNode, BatchNode, BitmapText, BlenderKey.LoadingResults, BoundingBox, BoundingSphere, BoundingVolume, CalculationBone, CameraNode, Geometry, LightNode, Node, ParticleEmitter, Picture, Ray, SimpleBatchNode, SkeletonDebugger, Spatial, StatsView, TerrainGrid, TerrainPatch, TerrainQuad, Triangle
public interface Collidable
Interface for Collidable objects.
Classes that implement this interface are marked as collidable, meaning
they support collision detection between other objects that are also
collidable.
collideWith
int collideWith(Collidable other,
CollisionResults results)
throws UnsupportedCollisionException
- Check collision with another Collidable.
- Parameters:
other
- The object to check collision againstresults
- Will contain the list of CollisionResult
s.
- Returns:
- how many collisions were found between this and other
- Throws:
UnsupportedCollisionException