public class Driver3D extends InOut
Constructor and Description |
---|
Driver3D() |
Driver3D(Mass m)
Create the driver and attach it to a mass module
|
Modifier and Type | Method and Description |
---|---|
void |
applyFrc(double x,
double y,
double z) |
void |
applyFrc(Vect3D frc)
Apply an input force to the mass controlled by the driver.
|
void |
applyPos(double x,
double y,
double z) |
void |
applyPos(Vect3D pos)
Apply an input position to the mass element controlled by the driver.
|
void |
compute()
Compute behavior of the In/Out (depends on the concrete implementation of concerned module).
|
void |
moveDriver(Mass m)
Move the driver to another mass
|
void |
triggerForceRamp(double x,
double y,
double z,
int timeSteps)
Trigger a force ramp applied to the controlled mass.
|
void |
triggerForceRamp(Vect3D frc,
int timeSteps)
Trigger a force ramp applied to the controlled mass.
|
public Driver3D(Mass m)
m
- the to drive.public Driver3D()
public void compute()
InOut
public void applyPos(Vect3D pos)
pos
- the position to applypublic void applyPos(double x, double y, double z)
public void applyFrc(Vect3D frc)
frc
- the Vec3D containing the force to applypublic void applyFrc(double x, double y, double z)
public void moveDriver(Mass m)
m
- the new mass to act uponpublic void triggerForceRamp(double x, double y, double z, int timeSteps)
x
- force amount along X.y
- force amount along Y.z
- force amount along Z.timeSteps
- steps in samples over which the force ramp is applied.public void triggerForceRamp(Vect3D frc, int timeSteps)
frc
- 3D vector containing the force to apply.timeSteps
- steps in samples over which the force ramp is applied.Processing Library miPhysics by James Leonard. (c) 2019