Ugh I found my mistake... I was setting the location using a modulated number, but in my intersects() method I forgot to modulate it. As a result, whenever the objects intersected, it was comparing...
Type: Posts; User: Uritomi
Ugh I found my mistake... I was setting the location using a modulated number, but in my intersects() method I forgot to modulate it. As a result, whenever the objects intersected, it was comparing...
I am attempting to write a 2D game with collision detection for two moving objects (one player controlled and the other in one direction) using Rectangle2D's intersects() method. When the non-player...