Package com.jme3.collision
Class CollisionResult
java.lang.Object
com.jme3.collision.CollisionResult
- All Implemented Interfaces:
Comparable<CollisionResult>
A
CollisionResult
represents a single collision instance
between two Collidable
. A collision check can result in many
collision instances (places where collision has occurred).-
Constructor Summary
ConstructorDescriptionCollisionResult
(Vector3f contactPoint, float distance) CollisionResult
(Geometry geometry, Vector3f contactPoint, float distance, int triangleIndex) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CollisionResult other) boolean
float
getTriangle
(Triangle store) int
int
hashCode()
void
setContactNormal
(Vector3f norm) void
setContactPoint
(Vector3f point) void
setDistance
(float dist) void
setGeometry
(Geometry geom) void
setTriangleIndex
(int index) toString()
-
Constructor Details
-
CollisionResult
-
CollisionResult
-
CollisionResult
public CollisionResult()
-
-
Method Details
-
setGeometry
-
setContactNormal
-
setContactPoint
-
setDistance
public void setDistance(float dist) -
setTriangleIndex
public void setTriangleIndex(int index) -
getTriangle
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CollisionResult>
-
equals
-
hashCode
public int hashCode() -
getContactPoint
-
getContactNormal
-
getDistance
public float getDistance() -
getGeometry
-
getTriangleIndex
public int getTriangleIndex() -
toString
-