@Override public void beginContact(Contact contact) { // TODO Auto-generated method stub Fixture fixtureA = contact.getFixtureA(); Fixture fixtureB = contact.getFixtureB(); Body bodyA = fixtureA.getBody(); Body bodyB = fixtureB.getBody(); if (fixtureA.isSensor()) { Enemy e = (Enemy) bodyA.getUserData(); e.setAngry(true); //Gdx.app.log(TAG, "T-Rex is angry!!!"); } else if(fixtureB.isSensor()) { Enemy e = (Enemy) bodyB.getUserData(); e.setAngry(true); //Gdx.app.log(TAG, "T-Rex is angry!!!"); } }