The ray class is mostly refactored, but the collision code needs to be debugged.

This commit is contained in:
Quinn
2023-04-08 10:18:56 -05:00
parent cd4ec2c819
commit 527615220f
6 changed files with 53 additions and 35 deletions

View File

@@ -6,7 +6,6 @@ public class Processing extends PApplet {
Car car;
ArrayList<Wall> objects = new ArrayList<>();
public static PApplet processing;
public static void main(String[] args) {
@@ -25,10 +24,12 @@ public class Processing extends PApplet {
}
public void draw(){
background(0);
// for(Wall object : objects){
// object.drawWall();
// }
for(Wall object : objects){
object.drawWall();
}
car.drawCar(objects);
strokeWeight(2);
stroke(255);
//car.drive(new int[] {0, 0});
}