CellModules
|
#include <elasticbody.hpp>
Public Member Functions | |
GhostCenter (H &h) | |
template<typename Integrator = Euler> | |
void | update (double dt, double momentOfInertia) |
bool | isMovementEnabled () |
void | disableMovement () |
void | enableMovement () |
Vec | getPosition () const |
Vec | getPrevposition () const |
Vec | getVelocity () const |
Vec | getForce () const |
double | getMass () const |
void | setPosition (const Vec &p) |
void | setPrevposition (const Vec &p) |
void | setVelocity (const Vec &v) |
void | setForce (const Vec &f) |
void | setMass (const double m) |
void | receiveForce (const double &intensity, const Vec &direction, const bool &compressive) |
void | receiveForce (const Vec &f) |
void | resetVelocity () |
void | resetForce () |
Vec | getAngularVelocity () const |
Vec | getTorque () const |
Basis< Vec > | getOrientation () const |
Rotation< Vec > | getOrientationRotation () const |
void | setAngularVelocity (const Vec &v) |
void | setTorque (const Vec &t) |
void | setOrientationRotation (const Rotation< Vec > &r) |
void | receiveTorque (const Vec &t) |
void | updateCurrentOrientation () |
void | resetTorque () |
void | resetAngularVelocity () |
Public Attributes | |
H & | host |
double | fK = 3.0 |
double | tK = 1.0 |
double | prevDist = 0 |
Protected Attributes | |
Vec | position = Vec::zero() |
Vec | prevposition = Vec::zero() |
Vec | velocity = Vec::zero() |
Vec | force = Vec::zero() |
bool | movementEnabled = true |
double | mass = Config::DEFAULT_CELL_MASS |
double | totalForce = 0 |
Vec | angularVelocity = Vec::zero() |
Vec | torque = Vec::zero() |
Basis< Vec > | orientation |
Rotation< Vec > | orientationRotation |
Definition at line 15 of file elasticbody.hpp.
|
inline |
Definition at line 20 of file elasticbody.hpp.
|
inlineinherited |
|
inlineinherited |
Definition at line 21 of file orientable.h.
|
inlineinherited |
Definition at line 23 of file orientable.h.
Definition at line 24 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 22 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 32 of file orientable.h.
|
inlineinherited |
Definition at line 35 of file orientable.h.
|
inlineinherited |
Definition at line 34 of file orientable.h.
|
inlineinherited |
Definition at line 25 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
Definition at line 27 of file orientable.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 26 of file orientable.h.
|
inlineinherited |
|
inline |
Definition at line 26 of file elasticbody.hpp.
|
inlineinherited |
Definition at line 33 of file orientable.h.
Definition at line 7 of file orientable.h.
double MecaCell::GhostCenter< H >::fK = 3.0 |
Definition at line 17 of file elasticbody.hpp.
H& MecaCell::GhostCenter< H >::host |
Definition at line 16 of file elasticbody.hpp.
|
protectedinherited |
|
protectedinherited |
Definition at line 9 of file orientable.h.
Definition at line 10 of file orientable.h.
double MecaCell::GhostCenter< H >::prevDist = 0 |
Definition at line 19 of file elasticbody.hpp.
double MecaCell::GhostCenter< H >::tK = 1.0 |
Definition at line 18 of file elasticbody.hpp.
Definition at line 8 of file orientable.h.
|
protectedinherited |