17 #ifndef AGX_OBSERVERFRAME_H
18 #define AGX_OBSERVERFRAME_H
25 # pragma warning(push)
26 # pragma warning(disable:4355) //Disable 'this' : used in base member initializer list warning
33 class MergeSplitBodyStorage;
105 void setLocalPosition(
const agx::Vec3& p );
142 void setLocalRotation(
const agx::Quat& q );
190 void setEnable(
bool enable );
196 bool getEnable()
const;
202 bool isEnabled()
const;
253 agx::Vec3 getAngularAcceleration()
const;
393 return m_frame.
get();
398 return m_frame.
get();
403 return m_rigidBody.
get();
408 return m_rigidBody.
get();
414 # pragma warning(pop)
void AGXPHYSICS_EXPORT init()
Initialize agx.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
#define AGXPHYSICS_EXPORT
agx::Frame * getFrame()
Returns the model frame containing model the transformation and utilities to manipulate position...
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
bool getEnable() const
Access the state enable flag.
Base class providing referencing counted objects.
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
Specialized type of matrices for holding symmetric positive definite matrices.
The rigid body class, combining a geometric model and a frame of reference.
const agx::RigidBody * getRigidBody() const
The complete physical system with bodies, interactions, data layout, time stepper, and solver.
bool isEnabled() const
Access the state enable flag.
The object defining a frame of reference and providing transformations operations.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
static agx::Vec3 transformVectorToWorld(const agx::Vec3 &v, const agxCollide::Geometry *g)
Transforms a vector given in shape coordinates to world coordinates given geometry g...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
static agx::Vec3 transformPointToWorld(const agx::Vec3 &p, const agxCollide::Geometry *g)
Transforms a point given in shape coordinates to world given geometry g.
Specialized types of matrices for holding orthogonal transformation matrices.
AGX_DECLARE_VECTOR_TYPES(Clock)
With this class you can attach an ObserverFrame object relative to a RigidBody.