Hello guys!
So i have been trying to find some answers for my question but i failed to find one so i thought it will be a good idea to ask it here.
if (contact.getFixtureA().getBody().getUserData() == "G" && contact.getFixtureB().getBody().getUserData() =="B"){
System.out.print("Landed");
}
So the “G” stand for the “Ground” and the “B” stand for the “Ball” and when the ball collides with the ground it should say “Landed” but it does not do it can anyone please tell me what is my mistake?