 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
17 #ifndef AGX_ELEMENTARYCONSTRAINTDATA_H
18 #define AGX_ELEMENTARYCONSTRAINTDATA_H
23 # pragma warning(push)
24 # pragma warning(disable: 6011) // Disable warningC6011: dereferencing nullptr pointer
512 return getAttachment( 0 )->get( m_dir1U );
520 return getAttachment( 0 )->get( m_dir1V );
528 return getAttachment( 0 )->get( m_dir1N );
536 return getAttachment( 1 )->get( m_dir2N );
629 return getAttachment( 0 )->get( m_dir1 );
637 return getAttachment( 1 )->get( m_dir2 );
649 # pragma warning(pop)
agx::Attachment::Transformed m_dir1U
agx::ref_ptr< const agx::Angle > AngleRefType
Vec3T getPerpendicularUnitVector() const
Basic data holder class for "angle based" (secondary) constraints.
Transformed
Data access enum.
Data holder class for elementary swing constraint.
agx::Attachment::Transformed m_dir2N
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
const agx::Attachment * getAttachment(agx::UInt index) const
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
const agx::Vec3 & getDir1N() const
const agx::AttachmentPair * m_ap
Class to hold data for elementary constraints.
agx::Attachment::Transformed m_dir1
void setSlack(agx::Real slack)
Set amount of slack in constraint.
const agx::Vec3 & getDir1() const
Constraint attachment pair class.
const agx::Angle * getAngle() const
Data holder class for elementary constraint QuatLock.
@ ANCHOR_POS
Constraint attachment world position.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
Data holder class for elementary constraint Dot2Slack.
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
agx::Attachment::Transformed m_dir2
Extended Dot1Data with additional slack parameter.
const agx::Vec3 & getDir1U() const
agx::Attachment::Transformed m_dir1N
T1 clamp(T1 v, T2 minimum, T3 maximum)
agx::Attachment::Transformed m_dir2
const agx::Vec3 & getCmToAnchorPosition(agx::UInt index) const
const agx::Vec3 & getDir2() const
Generic class for holding constraint data including 3 slack parameters.
const agx::Vec3 & getDir2N() const
const agx::Vec3 & getSeparation() const
agx::Real getSlack() const
agx::Attachment::Transformed m_dir1V
agx::Real getSlack() const
virtual agx::Int getReferenceBody() const
const agx::Vec3 & getDir2() const
agx::Attachment::Transformed m_dir1
Class for writing serialized data in binary format to a stream.
virtual const agx::Vec3 & getDir(const agx::AttachmentPair &ap, agx::UInt index) const
const agx::Vec3 & getWorldToAnchorPosition(agx::UInt index) const
QuatTransformerRef m_qTransformer
Data holder class for elementary constraint Dot2.
const agx::Vec3 & getDir() const
Real getAngle(const Vec3 &a, const Vec3 &b, const Vec3 &c)
a and b should be orthogonal
agx::Real getSwingAngle() const
agx::Vec3 getSwingAxis() const
Data holder class for elementary constraint Twist.
Constraint attachment base class for any type of frame.
agx::ref_ptr< QuatTransformer > QuatTransformerRef
const agx::Vec3 & getDir2() const
const agx::Vec3 getSlack() const
const agx::Vec3 & getDir1V() const
Custom data for separation pair.
@ SEPARATION
Separation vector, i.e., the vector from frame 2 to frame 1.
Data holder class for elementary constraint Dot1.
const agx::Vec3 & getDir1() const
void setSlack(agx::Vec3 slack)
@ CM_TO_ANCHOR_POS
Vector from center of mass (if moving) to anchor point given in world frame.
void setSlack(agx::Real slack)
const agx::AttachmentPair * getAttachmentPair() const
const agx::Vec3 & getDir1() const
agx::Attachment::Transformed m_dir