29 #ifndef __DYNAMICTRANSFORM_H__
30 #define __DYNAMICTRANSFORM_H__
61 public TypedField< H3D::SFVec3f, Types< SFTime > > {
70 virtual void update();
72 virtual void updateState( LMState &state,
H3DTime dt );
82 Types< SFRotation, SFVec3f > >{
86 virtual void update();
97 virtual void update() {
100 const Vec3f &_momentum =
102 value = _momentum / _mass;
113 virtual void update() {
114 const Vec3f & ang_vel =
118 value = 0.5 * Quaternion(ang_vel.x, ang_vel.y, ang_vel.z, 0) * (Quaternion)orn;
130 virtual void update() {
131 const Matrix3f &inertia_tensor =
133 const Vec3f &ang_momentum =
135 value = inertia_tensor.inverse() * ang_momentum;
141 Inst< RemoveChildren > _removeChildren = 0,
142 Inst< MFChild > _children = 0,
143 Inst< SFNode > _metadata = 0,
144 Inst< SFBound > _bound = 0,
145 Inst< SFVec3f > _bboxCenter = 0,
146 Inst< SFVec3f > _bboxSize = 0,
147 Inst< SFTransformedBound > _transformedBound = 0,
148 Inst< SFMatrix4f > _matrix = 0,
149 Inst< SFMatrix4f > _accumulatedForward = 0,
150 Inst< SFMatrix4f > _accumulatedInverse = 0,
151 Inst< SFVec3f > _position = 0,
152 Inst< SFRotation > _orientation = 0,
153 Inst< SFVelocity > _velocity = 0,
154 Inst< SFVec3f > _momentum = 0,
155 Inst< SFVec3f > _force = 0,
156 Inst< SFAngularVelocity > _angularVelocity = 0,
157 Inst< SFVec3f > _angularMomentum = 0,
158 Inst< SFSpin > _spin = 0,
159 Inst< SFVec3f > _torque = 0,
160 Inst< SFFloat > _mass = 0,
161 Inst< SFMatrix3f > _inertiaTensor = 0,
162 Inst< SFMotion > _motion = 0 );
Header file for PeriodicUpdate, template field modifier.
Contains fourth-order Runge Kutta integration functions.
Contains the SFMatrix3f field class.
Contains the SFQuaternion field class.
The SFFloat field contains one single-precision floating point number.
Definition: SFFloat.h:41
The SFMatrix3f field contains a Matrix3f.
Definition: SFMatrix3f.h:41
The SFRotation field contains one arbitrary Rotation.
Definition: SFRotation.h:41
The SFVec3f field contains a Vec3f.
Definition: SFVec3f.h:41
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
Type getValue(const char *s, const char *&rest)
Function that reads characters from a char * and converts them to a given type.
Definition: X3DFieldConversion.h:134
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194