public abstract class Mass extends PhyObject
Constructor and Description |
---|
Mass(double M,
double size,
Vect3D initPos,
Vect3D initPosR)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
compute()
Compute the physics of the Mass module.
|
Vect3D |
getFrc()
Get the value in the force buffer.
|
abstract double |
getParam(param p) |
Vect3D |
getPos()
Get the current position of this Mass module.
|
massType |
getType()
Get the type of this Mass module.
|
Vect3D |
getVel() |
abstract int |
setParam(param p,
double val) |
void |
stopVelocityControl()
Stop the current temporary velocity control
|
void |
triggerVelocityControl(Vect3D v)
Trigger a temporary velocity control
|
public abstract void compute()
public Vect3D getPos()
public Vect3D getVel()
public Vect3D getFrc()
public massType getType()
public void triggerVelocityControl(Vect3D v)
v
- the velocity used to displace the mat at each steppublic void stopVelocityControl()
Processing Library miPhysics by James Leonard. (c) 2019