17 #ifndef AGX_ELEMENTARYCONSTRAINTDATA_H 18 #define AGX_ELEMENTARYCONSTRAINTDATA_H 23 # pragma warning(push) 24 # pragma warning(disable: 6011) // Disable warningC6011: dereferencing nullptr pointer 509 return getAttachment( 0 )->get( m_dir1U );
517 return getAttachment( 0 )->get( m_dir1V );
525 return getAttachment( 0 )->get( m_dir1N );
533 return getAttachment( 1 )->get( m_dir2N );
577 return m_angle->getDir( *m_ap, 0 );
583 return m_angle->getDir( *m_ap, 1 );
626 return getAttachment( 0 )->get( m_dir1 );
634 return getAttachment( 1 )->get( m_dir2 );
672 void setConeLimitValue(
Vec2 limit);
678 Vec2 getConeLimitValue()
const;
697 # pragma warning(pop) void setSlack(agx::Vec3 slack)
const agx::Vec3 & getDir() const
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...
const agx::Vec3 & getDir1N() const
const agx::Angle * getAngle() const
agx::Real getSlack() const
const agx::Vec3 getSlack() const
Class to hold data for elementary constraints.
Data holder class for elementary constraint QuatLock.
Implementation of angle for the cone limit.
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...
agx::Attachment::Transformed m_dir1
agx::Attachment::Transformed m_dir
agx::Attachment::Transformed m_dir1V
agx::Attachment::Transformed m_dir1U
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::Attachment::Transformed m_dir2
const agx::Vec3 & getDir1() const
const agx::AttachmentPair * getAttachmentPair() const
Basic data holder class for "angle based" (secondary) constraints.
Constraint attachment world position.
agx::Vec3 getSwingAxis() const
Custom data for separation pair.
const agx::Vec3 & getDir1V() const
agx::Attachment::Transformed m_dir2N
Vec3T getPerpendicularUnitVector() const
Constraint attachment pair class.
agx::Attachment::Transformed m_dir1
Constraint attachment base class for any type of frame.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
const agx::Vec3 & getDir2N() const
Data holder class for elementary swing constraint.
const agx::Vec3 & getCmToAnchorPosition(agx::UInt index) const
const agx::Vec3 & getDir1() const
Data holder class for elementary constraint Twist.
Generic class for holding constraint data including 3 slack parameters.
Basic data holder class for cone limit constraint data.
Data holder class for elementary constraint Dot2.
agx::ref_ptr< QuatTransformer > QuatTransformerRef
agx::Real getSlack() const
agx::ref_ptr< agx::ConeLimitAngle > ConeLimitAngleRef
const agx::AttachmentPair * m_ap
const agx::Vec3 & getDir2() const
const agx::Vec3 & getDir2() const
virtual agx::Int getReferenceBody() const
Class for writing serialized data in binary format to a stream.
Data holder class for elementary constraint Dot2Slack.
const agx::Attachment * getAttachment(agx::UInt index) const
const agx::Vec3 & getSeparation() const
const agx::Vec3 & getDir1() const
QuatTransformerRef m_qTransformer
T1 clamp(T1 v, T2 minimum, T3 maximum)
Extended Dot1Data with additional slack parameter.
Separation vector, i.e., the vector from frame 2 to frame 1.
Data holder class for elementary constraint Dot1.
agx::Attachment::Transformed m_dir2
agx::Real getSwingAngle() const
Transformed
Data access enum.
const agx::Vec3 & getDir2() const
Real getAngle(const Vec3 &a, const Vec3 &b, const Vec3 &c)
a and b should be orthogonal
const agx::Vec3 & getDir1U() const
void setSlack(agx::Real slack)
agx::Attachment::Transformed m_dir1N
const agx::Vec3 & getWorldToAnchorPosition(agx::UInt index) const
Vector from center of mass (if moving) to anchor point given in world frame.
void setSlack(agx::Real slack)
Set amount of slack in constraint.