class Obstacle { Vector3D loc; float x,y,mass; Obstacle(float x_, float y_, float mass_) { x = x_; y = y_; mass = mass_; loc = new Vector3D(x_,y_); } }