Implement gravity and velocity vector.
[gravitysimulator.git] / src / edu / mit / ezyang / gravity / actors / Body.java
blobb83e16d691332763fd0b5fde315e80db871298aa
1 package edu.mit.ezyang.gravity.actors;
3 import com.sun.j3d.utils.geometry.Sphere;
4 import javax.vecmath.Vector3f;
6 /**
8 * @author Edward Z. Yang <ezyang@mit.edu>
9 */
10 public class Body extends Sphere {
11 public float mass = 0;
12 public Vector3f velocity = new Vector3f(0f, 0f, 0f);
13 public Body() {
15 public Body(float scale) {
16 super(scale);