#ifndef NX_PHYSICS_NXDISTANCEJOINT #define NX_PHYSICS_NXDISTANCEJOINT /*----------------------------------------------------------------------------*\ | | Public Interface to NovodeX Technology | | www.novodex.com | \*----------------------------------------------------------------------------*/ /** \addtogroup physics @{ */ #include "Nxp.h" #include "NxJoint.h" class NxDistanceJointDesc; /** \brief A distance joint maintains a certain distance between two points on two actors. \image html distanceJoint.png

Creation

Example: \include NxDistanceJoint_Create.cpp

Visulizations:

\li #NX_VISUALIZE_JOINT_LOCAL_AXES \li #NX_VISUALIZE_JOINT_WORLD_AXES \li #NX_VISUALIZE_JOINT_LIMITS \li #NX_VISUALIZE_JOINT_ERROR \li #NX_VISUALIZE_JOINT_FORCE \li #NX_VISUALIZE_JOINT_REDUCED @see NxDistanceJointDesc NxJoint NxScene.createJoint() */ class NxDistanceJoint : public NxJoint { public: /** \brief Use this for changing a significant number of joint parameters at once. Use the set() methods for changing only a single property at once. Sleeping: Does NOT wake the associated actor up automatically. \param[in] desc The descriptor used to set this objects state. Platform: \li PC SW: Yes \li PPU : No \li PS3 : Yes \li XB360: Yes @see saveToDesc() NxDistanceJointDesc */ virtual void loadFromDesc(const NxDistanceJointDesc& desc) = 0; /** \brief Writes all of the object's attributes to the desc struct \param[out] desc The descriptor used to retrieve this objects state. Platform: \li PC SW: Yes \li PPU : No \li PS3 : Yes \li XB360: Yes @see loadFromDesc() NxDistanceJointDesc */ virtual void saveToDesc(NxDistanceJointDesc& desc) = 0; }; /** @} */ #endif //AGCOPYRIGHTBEGIN /////////////////////////////////////////////////////////////////////////// // Copyright © 2005 AGEIA Technologies. // All rights reserved. www.ageia.com /////////////////////////////////////////////////////////////////////////// //AGCOPYRIGHTEND