im trying to get the Y cordinates of the ground in my project.
so when my character touches the ground.class it will get teleported to the top of my ground. but I have no idea how.
if anyone can help with this that would be great
(if its necessary info I have multiple (6) ground's in my scene)
if (isTouching(ground.class)){ setLocation(getX(), /*the part that i will put the Y of the ground in*/); }