Working on 3D shooter game in my class right now. I have a crosshair on HUD layer and the keycard spawning on the ground layer after the last enemy is destroyed. Currently trying to code the "obtaining" of the keycard when the crosshair is over the keycard and the "E" is pressed on the keyboard, using the "overlapping" condition.
Develop games in your browser. Powerful, performant & highly capable.
I think overlapping is in a 2D space, I don't think it would work for 3D if you are talking about something in front of you overlapping something else in front of you as from their x,y position they might not touch.
Oh, I got you. Thx! I will try to figure something else then