Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:10 CET 2013 -->
6
<TITLE>
7
RevoluteJoint (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="RevoluteJoint (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RevoluteJoint.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../../../index.html?com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="RevoluteJoint.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.badlogic.gdx.physics.box2d.Joint">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.physics.box2d.joints</FONT>
107
<BR>
108
Class RevoluteJoint</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html" title="class in com.badlogic.gdx.physics.box2d">com.badlogic.gdx.physics.box2d.Joint</A>
112
      <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.joints.RevoluteJoint</B>
113
</PRE>
114
<HR>
115
<DL>
116
<DT><PRE>public class <B>RevoluteJoint</B><DT>extends <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html" title="class in com.badlogic.gdx.physics.box2d">Joint</A></DL>
117
</PRE>
118
 
119
<P>
120
A revolute joint constrains two bodies to share a common point while they are free to rotate about the point. The relative
121
 rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a
122
 lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is
123
 provided so that infinite forces are not generated.
124
<P>
125
 
126
<P>
127
<HR>
128
 
129
<P>
130
<!-- =========== FIELD SUMMARY =========== -->
131
 
132
<A NAME="field_summary"><!-- --></A>
133
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136
<B>Field Summary</B></FONT></TH>
137
</TR>
138
</TABLE>
139
&nbsp;<A NAME="fields_inherited_from_class_com.badlogic.gdx.physics.box2d.Joint"><!-- --></A>
140
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
142
<TH ALIGN="left"><B>Fields inherited from class com.badlogic.gdx.physics.box2d.<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html" title="class in com.badlogic.gdx.physics.box2d">Joint</A></B></TH>
143
</TR>
144
<TR BGCOLOR="white" CLASS="TableRowColor">
145
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#addr">addr</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#jointEdgeA">jointEdgeA</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#jointEdgeB">jointEdgeB</A></CODE></TD>
146
</TR>
147
</TABLE>
148
&nbsp;
149
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
150
 
151
<A NAME="constructor_summary"><!-- --></A>
152
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
153
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
154
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
155
<B>Constructor Summary</B></FONT></TH>
156
</TR>
157
<TR BGCOLOR="white" CLASS="TableRowColor">
158
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#RevoluteJoint(com.badlogic.gdx.physics.box2d.World, long)">RevoluteJoint</A></B>(<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d">World</A>&nbsp;world,
159
              long&nbsp;addr)</CODE>
160
 
161
<BR>
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
163
</TR>
164
</TABLE>
165
&nbsp;
166
<!-- ========== METHOD SUMMARY =========== -->
167
 
168
<A NAME="method_summary"><!-- --></A>
169
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
170
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
171
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
172
<B>Method Summary</B></FONT></TH>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>&nbsp;void</CODE></FONT></TD>
177
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#enableLimit(boolean)">enableLimit</A></B>(boolean&nbsp;flag)</CODE>
178
 
179
<BR>
180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable/disable the joint limit.</TD>
181
</TR>
182
<TR BGCOLOR="white" CLASS="TableRowColor">
183
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184
<CODE>&nbsp;void</CODE></FONT></TD>
185
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#enableMotor(boolean)">enableMotor</A></B>(boolean&nbsp;flag)</CODE>
186
 
187
<BR>
188
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable/disable the joint motor.</TD>
189
</TR>
190
<TR BGCOLOR="white" CLASS="TableRowColor">
191
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192
<CODE>&nbsp;float</CODE></FONT></TD>
193
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#getJointAngle()">getJointAngle</A></B>()</CODE>
194
 
195
<BR>
196
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current joint angle in radians.</TD>
197
</TR>
198
<TR BGCOLOR="white" CLASS="TableRowColor">
199
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200
<CODE>&nbsp;float</CODE></FONT></TD>
201
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#getJointSpeed()">getJointSpeed</A></B>()</CODE>
202
 
203
<BR>
204
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current joint angle speed in radians per second.</TD>
205
</TR>
206
<TR BGCOLOR="white" CLASS="TableRowColor">
207
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208
<CODE>&nbsp;float</CODE></FONT></TD>
209
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#getLowerLimit()">getLowerLimit</A></B>()</CODE>
210
 
211
<BR>
212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the lower joint limit in radians.</TD>
213
</TR>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216
<CODE>&nbsp;float</CODE></FONT></TD>
217
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#getMotorSpeed()">getMotorSpeed</A></B>()</CODE>
218
 
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the motor speed in radians per second.</TD>
221
</TR>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE>&nbsp;float</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#getMotorTorque(float)">getMotorTorque</A></B>(float&nbsp;invDt)</CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the current motor torque, usually in N-m.</TD>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE>&nbsp;float</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#getUpperLimit()">getUpperLimit</A></B>()</CODE>
234
 
235
<BR>
236
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the upper joint limit in radians.</TD>
237
</TR>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE>&nbsp;boolean</CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#isLimitEnabled()">isLimitEnabled</A></B>()</CODE>
242
 
243
<BR>
244
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is the joint limit enabled?</TD>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>&nbsp;boolean</CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#isMotorEnabled()">isMotorEnabled</A></B>()</CODE>
250
 
251
<BR>
252
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is the joint motor enabled?</TD>
253
</TR>
254
<TR BGCOLOR="white" CLASS="TableRowColor">
255
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256
<CODE>&nbsp;void</CODE></FONT></TD>
257
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#setLimits(float, float)">setLimits</A></B>(float&nbsp;lower,
258
          float&nbsp;upper)</CODE>
259
 
260
<BR>
261
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the joint limits in radians.</TD>
262
</TR>
263
<TR BGCOLOR="white" CLASS="TableRowColor">
264
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265
<CODE>&nbsp;void</CODE></FONT></TD>
266
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#setMaxMotorTorque(float)">setMaxMotorTorque</A></B>(float&nbsp;torque)</CODE>
267
 
268
<BR>
269
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the maximum motor torque, usually in N-m.</TD>
270
</TR>
271
<TR BGCOLOR="white" CLASS="TableRowColor">
272
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273
<CODE>&nbsp;void</CODE></FONT></TD>
274
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html#setMotorSpeed(float)">setMotorSpeed</A></B>(float&nbsp;speed)</CODE>
275
 
276
<BR>
277
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the motor speed in radians per second.</TD>
278
</TR>
279
</TABLE>
280
&nbsp;<A NAME="methods_inherited_from_class_com.badlogic.gdx.physics.box2d.Joint"><!-- --></A>
281
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
282
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
283
<TH ALIGN="left"><B>Methods inherited from class com.badlogic.gdx.physics.box2d.<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html" title="class in com.badlogic.gdx.physics.box2d">Joint</A></B></TH>
284
</TR>
285
<TR BGCOLOR="white" CLASS="TableRowColor">
286
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getAnchorA()">getAnchorA</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getAnchorB()">getAnchorB</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getBodyA()">getBodyA</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getBodyB()">getBodyB</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getReactionForce(float)">getReactionForce</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getReactionTorque(float)">getReactionTorque</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#getType()">getType</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Joint.html#isActive()">isActive</A></CODE></TD>
287
</TR>
288
</TABLE>
289
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
290
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
291
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
292
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
293
</TR>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
296
</TR>
297
</TABLE>
298
&nbsp;
299
<P>
300
 
301
<!-- ========= CONSTRUCTOR DETAIL ======== -->
302
 
303
<A NAME="constructor_detail"><!-- --></A>
304
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
305
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
306
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
307
<B>Constructor Detail</B></FONT></TH>
308
</TR>
309
</TABLE>
310
 
311
<A NAME="RevoluteJoint(com.badlogic.gdx.physics.box2d.World, long)"><!-- --></A><H3>
312
RevoluteJoint</H3>
313
<PRE>
314
public <B>RevoluteJoint</B>(<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d">World</A>&nbsp;world,
315
                     long&nbsp;addr)</PRE>
316
<DL>
317
</DL>
318
 
319
<!-- ============ METHOD DETAIL ========== -->
320
 
321
<A NAME="method_detail"><!-- --></A>
322
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
323
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
324
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
325
<B>Method Detail</B></FONT></TH>
326
</TR>
327
</TABLE>
328
 
329
<A NAME="getJointAngle()"><!-- --></A><H3>
330
getJointAngle</H3>
331
<PRE>
332
public float <B>getJointAngle</B>()</PRE>
333
<DL>
334
<DD>Get the current joint angle in radians.
335
<P>
336
<DD><DL>
337
</DL>
338
</DD>
339
</DL>
340
<HR>
341
 
342
<A NAME="getJointSpeed()"><!-- --></A><H3>
343
getJointSpeed</H3>
344
<PRE>
345
public float <B>getJointSpeed</B>()</PRE>
346
<DL>
347
<DD>Get the current joint angle speed in radians per second.
348
<P>
349
<DD><DL>
350
</DL>
351
</DD>
352
</DL>
353
<HR>
354
 
355
<A NAME="isLimitEnabled()"><!-- --></A><H3>
356
isLimitEnabled</H3>
357
<PRE>
358
public boolean <B>isLimitEnabled</B>()</PRE>
359
<DL>
360
<DD>Is the joint limit enabled?
361
<P>
362
<DD><DL>
363
</DL>
364
</DD>
365
</DL>
366
<HR>
367
 
368
<A NAME="enableLimit(boolean)"><!-- --></A><H3>
369
enableLimit</H3>
370
<PRE>
371
public void <B>enableLimit</B>(boolean&nbsp;flag)</PRE>
372
<DL>
373
<DD>Enable/disable the joint limit.
374
<P>
375
<DD><DL>
376
</DL>
377
</DD>
378
</DL>
379
<HR>
380
 
381
<A NAME="getLowerLimit()"><!-- --></A><H3>
382
getLowerLimit</H3>
383
<PRE>
384
public float <B>getLowerLimit</B>()</PRE>
385
<DL>
386
<DD>Get the lower joint limit in radians.
387
<P>
388
<DD><DL>
389
</DL>
390
</DD>
391
</DL>
392
<HR>
393
 
394
<A NAME="getUpperLimit()"><!-- --></A><H3>
395
getUpperLimit</H3>
396
<PRE>
397
public float <B>getUpperLimit</B>()</PRE>
398
<DL>
399
<DD>Get the upper joint limit in radians.
400
<P>
401
<DD><DL>
402
</DL>
403
</DD>
404
</DL>
405
<HR>
406
 
407
<A NAME="setLimits(float, float)"><!-- --></A><H3>
408
setLimits</H3>
409
<PRE>
410
public void <B>setLimits</B>(float&nbsp;lower,
411
                      float&nbsp;upper)</PRE>
412
<DL>
413
<DD>Set the joint limits in radians.
414
<P>
415
<DD><DL>
416
<DT><B>Parameters:</B><DD><CODE>upper</CODE> - </DL>
417
</DD>
418
</DL>
419
<HR>
420
 
421
<A NAME="isMotorEnabled()"><!-- --></A><H3>
422
isMotorEnabled</H3>
423
<PRE>
424
public boolean <B>isMotorEnabled</B>()</PRE>
425
<DL>
426
<DD>Is the joint motor enabled?
427
<P>
428
<DD><DL>
429
</DL>
430
</DD>
431
</DL>
432
<HR>
433
 
434
<A NAME="enableMotor(boolean)"><!-- --></A><H3>
435
enableMotor</H3>
436
<PRE>
437
public void <B>enableMotor</B>(boolean&nbsp;flag)</PRE>
438
<DL>
439
<DD>Enable/disable the joint motor.
440
<P>
441
<DD><DL>
442
</DL>
443
</DD>
444
</DL>
445
<HR>
446
 
447
<A NAME="setMotorSpeed(float)"><!-- --></A><H3>
448
setMotorSpeed</H3>
449
<PRE>
450
public void <B>setMotorSpeed</B>(float&nbsp;speed)</PRE>
451
<DL>
452
<DD>Set the motor speed in radians per second.
453
<P>
454
<DD><DL>
455
</DL>
456
</DD>
457
</DL>
458
<HR>
459
 
460
<A NAME="getMotorSpeed()"><!-- --></A><H3>
461
getMotorSpeed</H3>
462
<PRE>
463
public float <B>getMotorSpeed</B>()</PRE>
464
<DL>
465
<DD>Get the motor speed in radians per second.
466
<P>
467
<DD><DL>
468
</DL>
469
</DD>
470
</DL>
471
<HR>
472
 
473
<A NAME="setMaxMotorTorque(float)"><!-- --></A><H3>
474
setMaxMotorTorque</H3>
475
<PRE>
476
public void <B>setMaxMotorTorque</B>(float&nbsp;torque)</PRE>
477
<DL>
478
<DD>Set the maximum motor torque, usually in N-m.
479
<P>
480
<DD><DL>
481
</DL>
482
</DD>
483
</DL>
484
<HR>
485
 
486
<A NAME="getMotorTorque(float)"><!-- --></A><H3>
487
getMotorTorque</H3>
488
<PRE>
489
public float <B>getMotorTorque</B>(float&nbsp;invDt)</PRE>
490
<DL>
491
<DD>Get the current motor torque, usually in N-m.
492
<P>
493
<DD><DL>
494
</DL>
495
</DD>
496
</DL>
497
<!-- ========= END OF CLASS DATA ========= -->
498
<HR>
499
 
500
 
501
<!-- ======= START OF BOTTOM NAVBAR ====== -->
502
<A NAME="navbar_bottom"><!-- --></A>
503
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
504
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
505
<TR>
506
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
507
<A NAME="navbar_bottom_firstrow"><!-- --></A>
508
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
509
  <TR ALIGN="center" VALIGN="top">
510
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
511
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
512
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
513
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RevoluteJoint.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
514
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
515
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
516
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
517
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
518
  </TR>
519
</TABLE>
520
</TD>
521
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
522
libgdx API</EM>
523
</TD>
524
</TR>
525
 
526
<TR>
527
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
528
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>PREV CLASS</B></A>&nbsp;
529
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>NEXT CLASS</B></A></FONT></TD>
530
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
531
  <A HREF="../../../../../../index.html?com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html" target="_top"><B>FRAMES</B></A>  &nbsp;
532
&nbsp;<A HREF="RevoluteJoint.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
533
&nbsp;<SCRIPT type="text/javascript">
534
  <!--
535
  if(window==top) {
536
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
537
  }
538
  //-->
539
</SCRIPT>
540
<NOSCRIPT>
541
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
542
</NOSCRIPT>
543
 
544
 
545
</FONT></TD>
546
</TR>
547
<TR>
548
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
549
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.badlogic.gdx.physics.box2d.Joint">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
550
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
551
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
552
</TR>
553
</TABLE>
554
<A NAME="skip-navbar_bottom"></A>
555
<!-- ======== END OF BOTTOM NAVBAR ======= -->
556
 
557
<HR>
558
 
559
                                <div style="font-size:9pt"><i>
560
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
561
                                </i></div>
562
 
563
</BODY>
564
</HTML>