CollisionResults - getContactPoint returns always null

Hey friends…

I have an ArrayList of enemys (Nodes) and i want to check the collision to the player but the getContactPoint() always return null : /

My code:


public void simpleUpdate(float tpf) {

for(Enemy figure : this.enemys){

CollisionResults results = new CollisionResults();

//javio is the player

this.javio.collideWith(figure.getWorldBound(), results);

if (results.size() > 0) {

CollisionResult closest = results.getClosestCollision();

System.out.println(closest.getContactPoint()); // > null





can someone tell me why that method returns null?

greeting Turael

It doesn’t really make sense in your case because when you collide a volume with a triangle you have a collision area rather than a point.