-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimulate.java
More file actions
36 lines (30 loc) · 1.48 KB
/
Copy pathsimulate.java
File metadata and controls
36 lines (30 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
public class simulate{
public static void main(String[] args)
{
//world.eta = 0.0008900;
world.eta = 0;
world w = new world();
new mainframe(w);
//surface s1 = new surface(new point(0,20), new point(500,20));
//round_block r = new round_block(new point(5,5),5);
//sphere sp1 = new sphere(new point(30,30),10,10000);
//System.out.println("distance to circle = " + s1.l1.distanceToCircle(sp1.c));
//sphere sp2 = new sphere(new point(30,0),10,10000000);
//sp1.setVelocity(new vector(10,10));
//r.interactWith(sp1);
//sp1.updatePosition(0.1);
//s1.interactWith(sp1);
//System.out.println("new velocity of sp1 = " + sp1.velocity.x + "," + sp1.velocity.y);
//System.out.println("new velocity of sp1 = " + sp1.velocity.x + "," + sp1.velocity.y);
//sp1.updatePosition(0.1);
//r.interactWith(sp1);
//System.out.println("new velocity of sp1 = " + sp1.velocity.x + "," + sp1.velocity.y);
//sp2.setVelocity(new vector(-5,5));
//sp1.checkCollisionAndSetVelocity(sp2);
//System.out.println("");
//System.out.println("new velocity of sp1 = " + sp1.velocity.x + "," + sp1.velocity.y + " sp2 = " + sp2.velocity.x + "," + sp2.velocity.y);
//s1.interactWith(sp1);
//System.out.println("a = " + s1.l1.a + " b = " + s1.l1.b + " c = " + s1.l1.c);
//*/
}
}