Collision test not working in Processing JS and it is different from other question on collisions

edited April 2016 in JavaScript Mode

Everything works using the Processing and also when brought into IntelliJ (with minor changes involving floats). The code is buried in a method of a class. Here it is: Boolean hits(float x, float y) { //return true if x,y near center of picture return ((x>padLeft)&&(x<padRight)&&(y>padTop)&&(y<padBot)); } It appears to always return false.

Tagged:

Answers

Sign In or Register to comment.