Posts

Showing posts from November, 2018

Unity Coliision

Image
I made the collision between the spheres and the platform. When the spheres touch the platform, they create 1000 vertical force.

midterm project

Image
code for countryside scene Tree[] trees = new Tree [30] ; Leaves[] leaves = new Leaves[100]; int z = 450; int angle; int turn; int turn2; float yb ; PShape car; void setup() {   size(800, 800, P3D);   background(0); car = loadShape("carfix.obj");   for (int i = 0; i < trees.length; i++) {     trees[i] = new Tree(random(-500,300), random(100,height+250));   }      for (int l = 0; l < leaves.length; l++) {     leaves[l] = new Leaves(random(width), random(100,height+250), random(360), random(-2000, 1000));   }   } void draw(){     background(129,186,255); println(mouseX); lights(); //rotateX(radians(770)); //pushMatrix();  //camera(width/2,yb+(height-10),0,width,height,mouseX,0,1,0); //popMatrix();   rotateX(radians(774));   translate(275, 470);   scale(0.3);     pushMatrix();   translate(0,0);   ...