aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxJoint_8h-source.html
blob: 0668688383191639b2293b9f895da396492eafd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<html>
	<head>
		<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxJoint.h Source File</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
	</head>

	<body bgcolor="#FFFFFF">
		<div id="header">
			<hr class="first">
			<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
			<center>
				<a class="qindex" href="main.html">Main Page</a> &nbsp; 
				<a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; 
				<a class="qindex" href="annotated.html">Compound List</a> &nbsp; 
				<a class="qindex" href="functions.html">Compound Members</a> &nbsp;  
			</center>
			<hr class="second">
		</div>
<!-- Generated by Doxygen 1.5.8 -->
<h1>PxJoint.h</h1><a href="PxJoint_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00003"></a>00003 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00004"></a>00004 <span class="comment">// are met:</span>
<a name="l00005"></a>00005 <span class="comment">//  * Redistributions of source code must retain the above copyright</span>
<a name="l00006"></a>00006 <span class="comment">//    notice, this list of conditions and the following disclaimer.</span>
<a name="l00007"></a>00007 <span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00008"></a>00008 <span class="comment">//    notice, this list of conditions and the following disclaimer in the</span>
<a name="l00009"></a>00009 <span class="comment">//    documentation and/or other materials provided with the distribution.</span>
<a name="l00010"></a>00010 <span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span>
<a name="l00011"></a>00011 <span class="comment">//    contributors may be used to endorse or promote products derived</span>
<a name="l00012"></a>00012 <span class="comment">//    from this software without specific prior written permission.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY</span>
<a name="l00015"></a>00015 <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
<a name="l00016"></a>00016 <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span>
<a name="l00018"></a>00018 <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00019"></a>00019 <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00020"></a>00020 <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00021"></a>00021 <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span>
<a name="l00022"></a>00022 <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00023"></a>00023 <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00024"></a>00024 <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef PX_JOINTCONSTRAINT_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define PX_JOINTCONSTRAINT_H</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxTransform_8h.html">foundation/PxTransform.h</a>"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="PxRigidActor_8h.html">PxRigidActor.h</a>"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="PxConstraint_8h.html">PxConstraint.h</a>"</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="PxBase_8h.html">common/PxBase.h</a>"</span>
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="classPxScene.html" title="A scene is a collection of bodies, particle systems and constraints which can interact...">PxScene</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK.">PxPhysics</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="classPxConstraint.html" title="A plugin class for implementing constraints.">PxConstraint</a>;
<a name="l00051"></a>00051 
<a name="l00057"></a><a class="code" href="structPxJointConcreteType.html">00057</a> <span class="keyword">struct </span><a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>
<a name="l00058"></a>00058 {
<a name="l00059"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486da">00059</a>     <span class="keyword">enum</span> <a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486da">Enum</a>
<a name="l00060"></a>00060     {
<a name="l00061"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486dac050ca9491d86964fbf98b4c00e455ed">00061</a>         eSPHERICAL = <a class="code" href="structPxConcreteType.html#d762aca1d4c8fffae41267fae4f1b8e8c2bbf4877545a3ced65d6057f643fd54">PxConcreteType::eFIRST_PHYSX_EXTENSION</a>,
<a name="l00062"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486da46c099a9e8c345ce0dbe354ebf5a8f70">00062</a>         eREVOLUTE,
<a name="l00063"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486da5ea559abf315b6a3f427c742bd694266">00063</a>         ePRISMATIC,
<a name="l00064"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486dab9bc1374f35bf5fb6a78d14719b4dba5">00064</a>         eFIXED,
<a name="l00065"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486dab2411ca3e563463b61fed33051bbe0e4">00065</a>         eDISTANCE,
<a name="l00066"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486da56865951e8d9ad79ab45bf5c2c1eab37">00066</a>         eD6,
<a name="l00067"></a><a class="code" href="structPxJointConcreteType.html#52e35818303a604ee07b32af31c486da0ce97aa66061e4dfa42aee7d7b0cab55">00067</a>         eLast
<a name="l00068"></a>00068     };
<a name="l00069"></a>00069 };
<a name="l00070"></a>00070 
<a name="l00071"></a>00071 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxJoint.html" title="a base interface providing common functionality for PhysX joints">PxJoint</a>,             <a class="code" href="structPxConcreteType.html#d762aca1d4c8fffae41267fae4f1b8e8e532e94bf1c5c2deac15d6ecc9e96ac6">PxConcreteType::eUNDEFINED</a>)
<a name="l00072"></a>00072 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxD6Joint.html" title="A D6 joint is a general constraint between two actors.">PxD6Joint</a>,           <a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>::eD6)
<a name="l00073"></a>00073 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxDistanceJoint.html" title="a joint that maintains an upper or lower bound (or both) on the distance between...">PxDistanceJoint</a>,     <a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>::eDISTANCE)
<a name="l00074"></a>00074 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxFixedJoint.html" title="A fixed joint permits no relative movement between two bodies. ie the bodies are...">PxFixedJoint</a>,        <a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>::eFIXED)
<a name="l00075"></a>00075 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxPrismaticJoint.html" title="A prismatic joint permits relative translational movement between two bodies along...">PxPrismaticJoint</a>,    <a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>::ePRISMATIC)
<a name="l00076"></a>00076 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxRevoluteJoint.html" title="A joint which behaves in a similar way to a hinge or axle.">PxRevoluteJoint</a>,     <a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>::eREVOLUTE)
<a name="l00077"></a>00077 <a class="code" href="group__common.html#g922d48697d998518e12a16e589f0c75a">PX_DEFINE_TYPEINFO</a>(<a class="code" href="classPxSphericalJoint.html" title="A joint which behaves in a similar way to a ball and socket.">PxSphericalJoint</a>,    <a class="code" href="structPxJointConcreteType.html" title="an enumeration of PhysX&amp;#39; built-in joint types">PxJointConcreteType</a>::eSPHERICAL)
<a name="l00078"></a>00078 
<a name="l00085"></a><a class="code" href="structPxJointActorIndex.html">00085</a> struct <a class="code" href="structPxJointActorIndex.html" title="an enumeration for specifying one or other of the actors referenced by a joint">PxJointActorIndex</a>
<a name="l00086"></a>00086 {
<a name="l00087"></a><a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd1">00087</a>     <span class="keyword">enum</span> <a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd1">Enum</a>
<a name="l00088"></a>00088     {
<a name="l00089"></a><a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd145ef4c4212228f18b42ecf2e3193f20b">00089</a>         eACTOR0,
<a name="l00090"></a><a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd1abf9aba9eb99db370bf4c2082b887f9b">00090</a>         eACTOR1,
<a name="l00091"></a><a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd15b1fe2be9615a8f37997528e9c9a3822">00091</a>         COUNT
<a name="l00092"></a>00092     };
<a name="l00093"></a>00093 };
<a name="l00094"></a>00094 
<a name="l00099"></a><a class="code" href="classPxJoint.html">00099</a> <span class="keyword">class </span><a class="code" href="classPxJoint.html" title="a base interface providing common functionality for PhysX joints">PxJoint</a> : <span class="keyword">public</span> <a class="code" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection.">PxBase</a>
<a name="l00100"></a>00100 {
<a name="l00101"></a>00101 <span class="comment">//= ATTENTION! =====================================================================================</span>
<a name="l00102"></a>00102 <span class="comment">// Changing the data layout of this class breaks the binary serialization format.  See comments for </span>
<a name="l00103"></a>00103 <span class="comment">// PX_BINARY_SERIAL_VERSION.  If a modification is required, please adjust the getBinaryMetaData </span>
<a name="l00104"></a>00104 <span class="comment">// function.  If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION</span>
<a name="l00105"></a>00105 <span class="comment">// accordingly.</span>
<a name="l00106"></a>00106 <span class="comment">//==================================================================================================</span>
<a name="l00107"></a>00107 <span class="keyword">public</span>:
<a name="l00108"></a>00108 
<a name="l00120"></a>00120     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setActors(<a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>* actor0, <a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>* actor1)           = 0;
<a name="l00121"></a>00121 
<a name="l00131"></a>00131     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                getActors(<a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>*&amp; actor0, <a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>*&amp; actor1) <span class="keyword">const</span>   = 0;
<a name="l00132"></a>00132 
<a name="l00144"></a>00144     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setLocalPose(<a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd1">PxJointActorIndex::Enum</a> actor, <span class="keyword">const</span> <a class="code" href="classPxTransform.html" title="class representing a rigid euclidean transform as a quaternion and a vector">PxTransform</a>&amp; localPose) = 0;
<a name="l00145"></a>00145 
<a name="l00156"></a>00156     <span class="keyword">virtual</span> <a class="code" href="classPxTransform.html" title="class representing a rigid euclidean transform as a quaternion and a vector">PxTransform</a>         getLocalPose(<a class="code" href="structPxJointActorIndex.html#1d62e1a8618a5ff4802335f99d4c5bd1">PxJointActorIndex::Enum</a> actor) <span class="keyword">const</span> = 0;
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 
<a name="l00166"></a>00166     <span class="keyword">virtual</span> <a class="code" href="classPxTransform.html" title="class representing a rigid euclidean transform as a quaternion and a vector">PxTransform</a>         getRelativeTransform()              <span class="keyword">const</span>   = 0;
<a name="l00167"></a>00167 
<a name="l00175"></a>00175     <span class="keyword">virtual</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>              getRelativeLinearVelocity()         <span class="keyword">const</span>   = 0;
<a name="l00176"></a>00176 
<a name="l00183"></a>00183     <span class="keyword">virtual</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>              getRelativeAngularVelocity()        <span class="keyword">const</span>   = 0;
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 
<a name="l00198"></a>00198     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setBreakForce(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> force, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> torque)                      = 0;
<a name="l00199"></a>00199 
<a name="l00208"></a>00208     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                getBreakForce(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>&amp; force, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>&amp; torque)            <span class="keyword">const</span>   = 0;
<a name="l00209"></a>00209 
<a name="l00217"></a>00217     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setConstraintFlags(<a class="code" href="classPxFlags.html" title="Container for bitfield flag variables associated with a specific enum type.">PxConstraintFlags</a> flags)                     = 0;
<a name="l00218"></a>00218 
<a name="l00227"></a>00227     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setConstraintFlag(<a class="code" href="structPxConstraintFlag.html#86960e99b3e80ddb9e0ab51d7afc3427">PxConstraintFlag::Enum</a> flag, <span class="keywordtype">bool</span> value)      = 0;
<a name="l00228"></a>00228 
<a name="l00229"></a>00229 
<a name="l00237"></a>00237     <span class="keyword">virtual</span> <a class="code" href="classPxFlags.html" title="Container for bitfield flag variables associated with a specific enum type.">PxConstraintFlags</a>   getConstraintFlags()                                    <span class="keyword">const</span>   = 0;
<a name="l00238"></a>00238 
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 
<a name="l00248"></a>00248     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setInvMassScale0(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> invMassScale)                           = 0;
<a name="l00249"></a>00249 
<a name="l00258"></a>00258     <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>              getInvMassScale0() <span class="keyword">const</span>                                        = 0;
<a name="l00259"></a>00259 
<a name="l00268"></a>00268     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setInvInertiaScale0(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> invInertiaScale)                     = 0;
<a name="l00269"></a>00269 
<a name="l00277"></a>00277     <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>              getInvInertiaScale0() <span class="keyword">const</span>                                     = 0;
<a name="l00278"></a>00278 
<a name="l00279"></a>00279 
<a name="l00287"></a>00287     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setInvMassScale1(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> invMassScale)                           = 0;
<a name="l00288"></a>00288 
<a name="l00297"></a>00297     <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>              getInvMassScale1() <span class="keyword">const</span>                                        = 0;
<a name="l00298"></a>00298 
<a name="l00307"></a>00307     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setInvInertiaScale1(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> invInertiaScale)                     = 0;
<a name="l00308"></a>00308 
<a name="l00316"></a>00316     <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>              getInvInertiaScale1() <span class="keyword">const</span>                                     = 0;
<a name="l00317"></a>00317 
<a name="l00318"></a>00318 
<a name="l00327"></a>00327     <span class="keyword">virtual</span> <a class="code" href="classPxConstraint.html" title="A plugin class for implementing constraints.">PxConstraint</a>*       getConstraint()                                         <span class="keyword">const</span>   = 0;
<a name="l00328"></a>00328 
<a name="l00340"></a>00340     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                setName(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)                                       = 0;
<a name="l00341"></a>00341 
<a name="l00350"></a>00350     <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*         getName()                                               <span class="keyword">const</span>   = 0;
<a name="l00351"></a>00351 
<a name="l00358"></a>00358     <span class="keyword">virtual</span> <span class="keywordtype">void</span>                release()                                                       = 0;
<a name="l00359"></a>00359 
<a name="l00360"></a>00360 
<a name="l00361"></a>00361 
<a name="l00369"></a>00369     <span class="keyword">virtual</span> <a class="code" href="classPxScene.html" title="A scene is a collection of bodies, particle systems and constraints which can interact...">PxScene</a>*            getScene()                                              <span class="keyword">const</span>   = 0;
<a name="l00370"></a>00370 
<a name="l00371"></a><a class="code" href="classPxJoint.html#8ce68f3ee0d88b6475e6cafbf1fc73ea">00371</a>     <span class="keywordtype">void</span>*                       userData;   
<a name="l00372"></a>00372 
<a name="l00373"></a>00373     <span class="comment">//serialization</span>
<a name="l00374"></a>00374 
<a name="l00378"></a>00378     <span class="keyword">static</span>  <span class="keywordtype">void</span>                getBinaryMetaData(<a class="code" href="classPxOutputStream.html" title="Output stream class for I/O.">PxOutputStream</a>&amp; stream);
<a name="l00379"></a>00379 
<a name="l00380"></a>00380     <span class="comment">//~serialization</span>
<a name="l00381"></a>00381                     
<a name="l00382"></a>00382 <span class="keyword">protected</span>:
<a name="l00383"></a><a class="code" href="classPxJoint.html#2c43517c6bc6d77062c4563e45a1dd99">00383</a>     <span class="keyword">virtual</span>                     <a class="code" href="classPxJoint.html#2c43517c6bc6d77062c4563e45a1dd99">~PxJoint</a>() {}
<a name="l00384"></a>00384 
<a name="l00385"></a>00385     <span class="comment">//serialization</span>
<a name="l00386"></a>00386 
<a name="l00390"></a><a class="code" href="classPxJoint.html#e0d4e45e29a51cf4953e22eaf0e7a22b">00390</a>     <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                   <a class="code" href="classPxJoint.html#e0d4e45e29a51cf4953e22eaf0e7a22b" title="Constructor.">PxJoint</a>(<a class="code" href="group__common.html#gc1fb4b256a5d900d394e89db170a2b79">PxType</a> concreteType, <a class="code" href="classPxFlags.html">PxBaseFlags</a> baseFlags) : <a class="code" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection.">PxBase</a>(concreteType, baseFlags), userData(NULL) {}
<a name="l00391"></a>00391     
<a name="l00395"></a><a class="code" href="classPxJoint.html#b2ff846430088e54fc1ace3d9ab14d18">00395</a>     <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a>                   <a class="code" href="classPxJoint.html#b2ff846430088e54fc1ace3d9ab14d18" title="Deserialization constructor.">PxJoint</a>(<a class="code" href="classPxFlags.html">PxBaseFlags</a> baseFlags)  : <a class="code" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection.">PxBase</a>(baseFlags) {}
<a name="l00396"></a>00396 
<a name="l00400"></a><a class="code" href="classPxJoint.html#bf37afb8ce63b5402cf69ab6e9344b28">00400</a>     <span class="keyword">virtual</span> <span class="keywordtype">bool</span>                <a class="code" href="classPxJoint.html#bf37afb8ce63b5402cf69ab6e9344b28" title="Returns whether a given type name matches with the type of this instance.">isKindOf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !::strcmp(<span class="stringliteral">"PxJoint"</span>, name) || <a class="code" href="classPxBase.html#ae9d444c7cfd1715a101350a1b1226ef" title="Returns whether a given type name matches with the type of this instance.">PxBase::isKindOf</a>(name); }
<a name="l00401"></a>00401 
<a name="l00402"></a>00402     <span class="comment">//~serialization</span>
<a name="l00403"></a>00403 };
<a name="l00404"></a>00404 
<a name="l00405"></a><a class="code" href="classPxSpring.html">00405</a> <span class="keyword">class </span><a class="code" href="classPxSpring.html">PxSpring</a>
<a name="l00406"></a>00406 {
<a name="l00407"></a>00407 <span class="comment">//= ATTENTION! =====================================================================================</span>
<a name="l00408"></a>00408 <span class="comment">// Changing the data layout of this class breaks the binary serialization format.  See comments for </span>
<a name="l00409"></a>00409 <span class="comment">// PX_BINARY_SERIAL_VERSION.  If a modification is required, please adjust the getBinaryMetaData </span>
<a name="l00410"></a>00410 <span class="comment">// function.  If the modification is made on a custom branch, please change PX_BINARY_SERIAL_VERSION</span>
<a name="l00411"></a>00411 <span class="comment">// accordingly.</span>
<a name="l00412"></a>00412 <span class="comment">//==================================================================================================</span>
<a name="l00413"></a>00413 <span class="keyword">public</span>:
<a name="l00414"></a>00414 
<a name="l00415"></a><a class="code" href="classPxSpring.html#eb7dbc850461f2bc652ca73c80e523e1">00415</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>                  stiffness;          
<a name="l00416"></a><a class="code" href="classPxSpring.html#0a87d5342df941b96ac1ad97dc3eb306">00416</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>                  damping;            
<a name="l00417"></a>00417 
<a name="l00418"></a><a class="code" href="classPxSpring.html#2fe1f5d75c8b8e0c7ad9ce417c8fdebc">00418</a>     <a class="code" href="classPxSpring.html#2fe1f5d75c8b8e0c7ad9ce417c8fdebc">PxSpring</a>(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> stiffness_, <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> damping_): stiffness(stiffness_), damping(damping_) {}
<a name="l00419"></a>00419 };
<a name="l00420"></a>00420 
<a name="l00421"></a>00421 
<a name="l00422"></a>00422 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00423"></a>00423 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l00424"></a>00424 <span class="preprocessor">#endif</span>
<a name="l00425"></a>00425 <span class="preprocessor"></span>
<a name="l00440"></a>00440 <a class="code" href="Pxc_8h.html#ea189596f11f07c586d4757cc67e8f7f">PX_C_EXPORT</a> <span class="keywordtype">void</span> PX_CALL_CONV <a class="code" href="group__extensions.html#g43cc950618f193fd1fdbde2f624e0e52" title="Helper function to setup a joint&amp;#39;s global frame.">PxSetJointGlobalFrame</a>(physx::PxJoint&amp; joint, <span class="keyword">const</span> physx::PxVec3* wsAnchor, <span class="keyword">const</span> physx::PxVec3* wsAxis);
<a name="l00441"></a>00441 
<a name="l00443"></a>00443 <span class="preprocessor">#endif</span>
</pre></div></div>

<hr style="width: 100%; height: 2px;"><br>
Copyright &copy; 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>