[1378] | 1 | #ifndef NX_PHYSICS_NXFIXEDJOINT
|
---|
| 2 | #define NX_PHYSICS_NXFIXEDJOINT
|
---|
| 3 | /*----------------------------------------------------------------------------*\
|
---|
| 4 | |
|
---|
| 5 | | Public Interface to NovodeX Technology
|
---|
| 6 | |
|
---|
| 7 | | www.novodex.com
|
---|
| 8 | |
|
---|
| 9 | \*----------------------------------------------------------------------------*/
|
---|
| 10 | /** \addtogroup physics
|
---|
| 11 | @{
|
---|
| 12 | */
|
---|
| 13 |
|
---|
| 14 | #include "Nxp.h"
|
---|
| 15 | #include "NxJoint.h"
|
---|
| 16 |
|
---|
| 17 | class NxFixedJointDesc;
|
---|
| 18 |
|
---|
| 19 | /**
|
---|
| 20 | \brief A fixed joint permits no relative movement between two bodies. ie the bodies are glued together.
|
---|
| 21 |
|
---|
| 22 | \image html fixedJoint.png
|
---|
| 23 |
|
---|
| 24 | <h3>Creation</h3>
|
---|
| 25 |
|
---|
| 26 | Example:
|
---|
| 27 |
|
---|
| 28 | \include NxFixedJoint_Create.cpp
|
---|
| 29 |
|
---|
| 30 | <h3>Visulizations:</h3>
|
---|
| 31 | \li #NX_VISUALIZE_JOINT_LOCAL_AXES
|
---|
| 32 | \li #NX_VISUALIZE_JOINT_WORLD_AXES
|
---|
| 33 | \li #NX_VISUALIZE_JOINT_LIMITS
|
---|
| 34 | \li #NX_VISUALIZE_JOINT_ERROR
|
---|
| 35 | \li #NX_VISUALIZE_JOINT_FORCE
|
---|
| 36 | \li #NX_VISUALIZE_JOINT_REDUCED
|
---|
| 37 |
|
---|
| 38 | @see NxFixedJointDesc NxScene.createJoint()
|
---|
| 39 | */
|
---|
| 40 | class NxFixedJoint: public NxJoint
|
---|
| 41 | {
|
---|
| 42 | public:
|
---|
| 43 | /**
|
---|
| 44 | \brief Use this for changing a significant number of joint parameters at once.
|
---|
| 45 |
|
---|
| 46 | Use the set() methods for changing only a single property at once.
|
---|
| 47 |
|
---|
| 48 | <b>Sleeping:</b> Does <b>NOT</b> wake the associated actor up automatically.
|
---|
| 49 |
|
---|
| 50 | \param[in] desc The descriptor used to set this objects state.
|
---|
| 51 |
|
---|
| 52 | <b>Platform:</b>
|
---|
| 53 | \li PC SW: Yes
|
---|
| 54 | \li PPU : No
|
---|
| 55 | \li PS3 : Yes
|
---|
| 56 | \li XB360: Yes
|
---|
| 57 | */
|
---|
| 58 | virtual void loadFromDesc(const NxFixedJointDesc& desc) = 0;
|
---|
| 59 |
|
---|
| 60 | /**
|
---|
| 61 | \brief Writes all of the object's attributes to the desc struct
|
---|
| 62 |
|
---|
| 63 | \param[out] desc The descriptor used to retrieve this objects state.
|
---|
| 64 |
|
---|
| 65 | <b>Platform:</b>
|
---|
| 66 | \li PC SW: Yes
|
---|
| 67 | \li PPU : No
|
---|
| 68 | \li PS3 : Yes
|
---|
| 69 | \li XB360: Yes
|
---|
| 70 | */
|
---|
| 71 | virtual void saveToDesc(NxFixedJointDesc& desc) = 0;
|
---|
| 72 | };
|
---|
| 73 |
|
---|
| 74 | /** @} */
|
---|
| 75 | #endif
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | //AGCOPYRIGHTBEGIN
|
---|
| 80 | ///////////////////////////////////////////////////////////////////////////
|
---|
| 81 | // Copyright © 2005 AGEIA Technologies.
|
---|
| 82 | // All rights reserved. www.ageia.com
|
---|
| 83 | ///////////////////////////////////////////////////////////////////////////
|
---|
| 84 | //AGCOPYRIGHTEND
|
---|
| 85 |
|
---|