24 # pragma warning(push)
25 # pragma warning(disable:4355)
32 class MergeSplitBodyStorage;
197 bool getEnable()
const;
203 bool isEnabled()
const;
394 return m_frame.
get();
399 return m_frame.
get();
404 return m_rigidBody.
get();
409 return m_rigidBody.
get();
415 # pragma warning(pop)
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
The complete physical system with bodies, interactions, data layout, time stepper,...
This class provides conversion services between Euler angles in any of the 24 conventions and corresp...
The object defining a frame of reference and providing transformations operations.
Representation of a name string.
With this class you can attach an ObserverFrame object relative to a RigidBody.
bool isEnabled() const
Access the state enable flag.
void setLocalPosition(const agx::Vec3 &p)
Assign the parent relative translate of this frame.
void detach()
Detach the current rigid body, setting the current rigid body to the world and the frame to identity.
void setRotation(const agx::Quat &q)
Set the rotation of the frame relative to world frame.
agx::Vec3 transformPointToWorld(const agx::Vec3 &pointLocal) const
void attach(agx::RigidBody *rb, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Attach the ObserverFrame to a rigid body.
void setName(const agx::Name &name)
Assign new name to this observer frame.
ObserverFrame(const agx::Name &name="", agx::RigidBody *rb=nullptr, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Construct given name.
agx::Vec3 getRelativeAngularVelocity(const agx::RigidBody *rb) const
Get the relative angular velocity of a rigid body and the ObserverFrame in the world.
void setPosition(agx::Real x, agx::Real y, agx::Real z)
Assign the final (world) translate of this frame.
agx::Vec3 getRelativePosition(const agx::RigidBody *body) const
Get the relative position (distance) of an observer frame and the RigidBody in the world.
void setLocalRotation(const agx::Quat &q)
Assign the parent relative rotation of this frame.
agx::Vec3 getRelativePosition(const agx::ObserverFrame *obs) const
Get the relative position (distance) of an observer frame and the ObserverFrame in the world.
agx::Vec3 transformVectorToWorld(const agx::Vec3 &vectorLocal) const
Wrapper functions for Frame.
agx::Frame * getParentFrame()
const agx::DynamicsSystem * getSystem() const
agx::Vec3 getRelativeAngularVelocity(const agx::ObserverFrame *obs) const
Get the relative angular velocity of an observer frame and the ObserverFrame in the world.
agx::DynamicsSystem * getSystem()
agx::Vec3 getLocalPosition() const
agx::Vec3 transformPointToLocal(const agx::Vec3 &pointWorld) const
agx::Vec3 getRelativeAcceleration(const agx::RigidBody *rb) const
Get the relative acceleration of a rigid body and the ObserverFrame in the world.
agx::Vec3 getRelativeVelocity(const agx::RigidBody *rb) const
Get the relative velocity of a rigid body and the ObserverFrame in the world.
bool setCmAndInertiaInObserver(agx::RigidBody *rb, const agx::SPDMatrix3x3 &inertia)
Set the specified inertia in the frame of the observer on the rigid body.
agx::Quat getRotation() const
Current model frame rotation, given in world coordinate frame.
agx::Vec3 getPosition() const
Current model frame position, given in world coordinate frame.
void setSystem(agx::DynamicsSystem *system)
Assign dynamics system which this body belongs to.
agx::Name getName() const
agx::Quat getLocalRotation() const
void setRotation(const agx::OrthoMatrix3x3 &m)
Set the rotation of the frame relative to world frame.
agx::Vec3 getRelativeAngularAcceleration(const agx::RigidBody *rb) const
Get the relative angular acceleration of a rigid body and the ObserverFrame in the world.
agx::Vec3 getAngularVelocity() const
Get the angular velocity of the ObserverFrame in the world.
void setRotation(const agx::EulerAngles &e)
Set the rotation of the frame relative to world frame.
agx::Vec3 getAngularAcceleration() const
Get the angular acceleration of the ObserverFrame in the world.
ObserverFrame(agx::RigidBody *rb, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Construct without name.
const agx::Frame * getParentFrame() const
bool getEnable() const
Access the state enable flag.
agx::Vec3 getVelocity() const
Get the velocity of the ObserverFrame in the world.
const agx::AffineMatrix4x4 & getLocalTransform() const
const agx::RigidBody * getRigidBody() const
bool setParentFrame(agx::Frame *frame)
Set the parent Frame of this ObserverFrame.
agx::Frame * getFrame()
Returns the model frame containing model the transformation and utilities to manipulate position,...
void setLocalTransform(const agx::AffineMatrix4x4 &matrix)
Assign the local transformation matrix for this frame ignoring any eventual parent transformation.
agx::Vec3 getAcceleration() const
Get the acceleration of the ObserverFrame in the world.
agx::RigidBody * getAttachment() const
void setLocalRotation(const agx::EulerAngles &e)
Assign the parent relative rotation of this frame.
void setLocalPosition(agx::Real x, agx::Real y, agx::Real z)
Assign the parent relative translate of this frame.
void setPosition(const agx::Vec3 &p)
Assign the final (world) translate of this frame.
void attachWithWorldTransform(agx::RigidBody *rb, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Attach the ObserverFrame to a rigid body.
void setTransform(const agx::AffineMatrix4x4 &matrix)
This method will set the local matrix of this frame to be the matrix m multiplied with the inverse of...
agx::Vec3 transformVectorToLocal(const agx::Vec3 &vectorWorld) const
agx::Vec3 getRelativeAngularAcceleration(const agx::ObserverFrame *obs) const
Get the relative angular acceleration of an observer frame and the ObserverFrame in the world.
agx::Vec3 getRelativeAcceleration(const agx::ObserverFrame *obs) const
Get the relative acceleration of an observer frame and the ObserverFrame in the world.
agx::Vec3 getRelativeVelocity(const agx::ObserverFrame *obs) const
Get the relative velocity of an observer frame and the ObserverFrame in the world.
void setEnable(bool enable)
Change state enable of this observer frame.
Specialized types of matrices for holding orthogonal transformation matrices.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Specialized type of matrices for holding symmetric positive definite matrices.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::SetVector< ObserverFrameRef > ObserverFrameRefSetVector
void AGXPHYSICS_EXPORT init()
Initialize agx.