Advertisement

Latest array Activity

Java Class, How to Check Collision Between Entities in Same Array?

JoeJ said:
(Did not read former replies)

Your was the first issue and part of the third issue of the four I pointed out.

@yusufabi It may seem a bit rough, but I recommend reading this paper about asking questions in technical forums. It will help both in asking and in responding to the replies you ha…

12,052 views
Advertisement

You need to determine what you want, genome recombination (accurate or not doesn't matter) or a way two recombine 2 dimensional arrays? Are they fixed to 2 fields each or do you consider to have N fields in the second array? This makes a huge difference and you should learn to ask for what you want…

6,669 views

yusufabi said:
its not erasing last element of vector. i would like to erase enemies from my class this is my problem

Please explain in words how this erase code works.

15,215 views

for (int i = 0; i<7; i++) { for (int j = 0; j<7; j++)

ugh, then at least optimize to avoid redundant tests:

for (int i = 0; i<7-1; i++)
for (int j = i+1; j<7; j++) {:)}

fleabay said:
Don't worry about broad phase or quadtrees for now. You'll never know what the computer is capable of if you…

8,220 views
Airbatz
March 05, 2021 10:37 AM

@endurion 

Thanks for pointing that out. It has since been fixed.  ?

9,863 views
Advertisement
Advertisement
Advertisement