Skip to content
Advertisement

Android combine multiple booleans with elements from List

Hello I am developing a game and working on collision detection. For now my method does not allow to add elements dynamically, as you can see I am adding collision nodes (11,12,13,...) manually. Here is my code:

JavaScript

I want to dynamically build a boolean isNotCollision() depending on number of elements of collision in List. I want to rebuild it in a way that it hase List<Integer> collisionNodes as an argument.

JavaScript

Advertisement

Answer

Try :

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement