CollisionResult: add hashCode() - required if we have equals()
This commit is contained in:
parent
305e56a921
commit
06408410cf
@ -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…
x
Reference in New Issue
Block a user