#Rectangle intersects method problem

17 messages · Page 1 of 1 (latest)

fossil nexus
#

Rectangle's intersects method working in a little bit weird way, here is image with code of this method:
(yes, i just copied code of this method, but just using: Rectangle.intersects(otherRectangle) doesnt even work
and here is video how does it work according to code on my screenshot: https://youtu.be/UWBZ4GHiUgs

bitter iceBOT
#

<@&765578700724371486>

Requested by Vip#0645
graceful crag
#

@fossil nexus

#

can u send the code here

#

nice game

fossil nexus
#

@graceful crag sorry for ping, and sorry again, i cant really send u code right now, i will do this later, ok?

fossil nexus
fossil nexus
bitter iceBOT
#

<@&765578700724371486>

Requested by Vip#0645
graceful crag
fossil nexus
fossil nexus
#

@supple nimbus

#

I hope its allowed to ping you here

graceful crag
graceful crag
fossil nexus
#

Im using code from Java's Rectangle class

#

And in an if statement im doing something like this
In starHitbox class:
if(intersects(GHitbox) == true) {
doSomething();
}