2021-06-07 18:00:39 +12:00
|
|
|
package nz.ac.massey.javaecs;
|
2021-04-27 13:50:59 +12:00
|
|
|
|
|
|
|
public class RidgidBody {
|
|
|
|
public RidgidBody(){}
|
|
|
|
public RidgidBody(double xdot, double ydot, double xAcc, double yAcc){
|
|
|
|
this.xdot = xdot;
|
|
|
|
this.ydot = ydot;
|
|
|
|
this.xAcc = xAcc;
|
|
|
|
this.yAcc = yAcc;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Velocities
|
|
|
|
double xdot = 0.0;
|
|
|
|
double ydot = 0.0;
|
|
|
|
// accelerations
|
|
|
|
double xAcc = 0.0;
|
|
|
|
double yAcc = 0.0;
|
|
|
|
}
|