1 | #ifndef NX_PHYSICS_NXJOINTLIMITSOFTPAIRDESC
|
---|
2 | #define NX_PHYSICS_NXJOINTLIMITSOFTPAIRDESC
|
---|
3 | /*----------------------------------------------------------------------------*\
|
---|
4 | |
|
---|
5 | | Public Interface to NovodeX Technology
|
---|
6 | |
|
---|
7 | | www.novodex.com
|
---|
8 | |
|
---|
9 | \*----------------------------------------------------------------------------*/
|
---|
10 | /** \addtogroup physics
|
---|
11 | @{
|
---|
12 | */
|
---|
13 |
|
---|
14 | #include "NxJointLimitSoftDesc.h"
|
---|
15 |
|
---|
16 | /**
|
---|
17 | \brief Describes a pair of joint limits
|
---|
18 |
|
---|
19 | <b>Platform:</b>
|
---|
20 | \li PC SW: Yes
|
---|
21 | \li PPU : No
|
---|
22 | \li PS3 : Yes
|
---|
23 | \li XB360: Yes
|
---|
24 |
|
---|
25 | @see NxD6Joint NxD6JointDesc
|
---|
26 | */
|
---|
27 | class NxJointLimitSoftPairDesc
|
---|
28 | {
|
---|
29 | public:
|
---|
30 |
|
---|
31 | /**
|
---|
32 | \brief The low limit (smaller value)
|
---|
33 |
|
---|
34 | <b>Range:</b> See #NxJointLimitSoftDesc<br>
|
---|
35 | <b>Default:</b> See #NxJointLimitSoftDesc
|
---|
36 |
|
---|
37 | @see NxJointLimitSoftDesc
|
---|
38 | */
|
---|
39 | NxJointLimitSoftDesc low;
|
---|
40 |
|
---|
41 | /**
|
---|
42 | \brief the high limit (larger value)
|
---|
43 |
|
---|
44 | <b>Range:</b> See #NxJointLimitSoftDesc<br>
|
---|
45 | <b>Default:</b> See #NxJointLimitSoftDesc
|
---|
46 |
|
---|
47 | @see NxJointLimitSoftDesc
|
---|
48 | */
|
---|
49 | NxJointLimitSoftDesc high;
|
---|
50 |
|
---|
51 | /**
|
---|
52 | \brief Constructor, sets members to default values.
|
---|
53 | */
|
---|
54 | NX_INLINE NxJointLimitSoftPairDesc();
|
---|
55 |
|
---|
56 | /**
|
---|
57 | \brief Sets members to default values.
|
---|
58 | */
|
---|
59 | NX_INLINE void setToDefault();
|
---|
60 |
|
---|
61 | /**
|
---|
62 | \brief Returns true if the descriptor is valid.
|
---|
63 |
|
---|
64 | \return true if the current settings are valid
|
---|
65 | */
|
---|
66 | NX_INLINE bool isValid() const;
|
---|
67 | };
|
---|
68 |
|
---|
69 | NX_INLINE NxJointLimitSoftPairDesc::NxJointLimitSoftPairDesc()
|
---|
70 | {
|
---|
71 | setToDefault();
|
---|
72 | }
|
---|
73 |
|
---|
74 | NX_INLINE void NxJointLimitSoftPairDesc::setToDefault()
|
---|
75 | {
|
---|
76 | //nothing
|
---|
77 | }
|
---|
78 |
|
---|
79 | NX_INLINE bool NxJointLimitSoftPairDesc::isValid() const
|
---|
80 | {
|
---|
81 | return (low.isValid() && high.isValid() && low.value <= high.value);
|
---|
82 | }
|
---|
83 |
|
---|
84 | /** @} */
|
---|
85 | #endif
|
---|
86 |
|
---|
87 |
|
---|
88 | //AGCOPYRIGHTBEGIN
|
---|
89 | ///////////////////////////////////////////////////////////////////////////
|
---|
90 | // Copyright © 2005 AGEIA Technologies.
|
---|
91 | // All rights reserved. www.ageia.com
|
---|
92 | ///////////////////////////////////////////////////////////////////////////
|
---|
93 | //AGCOPYRIGHTEND
|
---|
94 |
|
---|