CollisionResult: add hashCode() - required if we have equals()

experimental
shadowislord 10 years ago
parent 305e56a921
commit 06408410cf
  1. 5
      jme3-core/src/main/java/com/jme3/collision/CollisionResult.java

@ -109,6 +109,11 @@ public class CollisionResult implements Comparable<CollisionResult> {
return super.equals(obj); return super.equals(obj);
} }
@Override
public int hashCode() {
return Float.floatToIntBits(distance);
}
public Vector3f getContactPoint() { public Vector3f getContactPoint() {
return contactPoint; return contactPoint;
} }

Loading…
Cancel
Save