Finish AB 2
This commit is contained in:
@ -53,6 +53,10 @@ public class Body {
|
||||
return SpaceDraw.massToRadius(mass);
|
||||
}
|
||||
|
||||
public double mass() {
|
||||
return mass;
|
||||
}
|
||||
|
||||
// Returns a new body that is formed by the collision of this body and 'b'. The impulse
|
||||
// of the returned body is the sum of the impulses of 'this' and 'b'.
|
||||
public Body merge(Body b) {
|
||||
|
Reference in New Issue
Block a user