public class PosInput3D extends Mass
Constructor and Description |
---|
PosInput3D(double size,
Vect3D initPos) |
PosInput3D(double size,
Vect3D initPos,
int smoothing) |
Modifier and Type | Method and Description |
---|---|
void |
compute()
Compute the physics of the Mass module.
|
void |
drivePosition(Vect3D outsidePos)
Drive position with a new value, without setting velocity to zero.
|
double |
getParam(param p) |
int |
setParam(param p,
double val) |
void |
setPosition(Vect3D outsidePos)
Set the position and also delayed position: for setting state "instantly" with null velocity
|
getFrc, getPos, getType, getVel, stopVelocityControl, triggerVelocityControl
public PosInput3D(double size, Vect3D initPos, int smoothing)
public PosInput3D(double size, Vect3D initPos)
public void compute()
Mass
public void setPosition(Vect3D outsidePos)
outsidePos
- the new positionpublic void drivePosition(Vect3D outsidePos)
outsidePos
- the new position to applyProcessing Library miPhysics by James Leonard. (c) 2019