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
RevoluteJointDef (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="RevoluteJointDef (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/RevoluteJointDef.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/RevoluteJoint.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/RopeJoint.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/RevoluteJointDef.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="RevoluteJointDef.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;<A HREF="#nested_classes_inherited_from_class_com.badlogic.gdx.physics.box2d.JointDef">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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 RevoluteJointDef</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html" title="class in com.badlogic.gdx.physics.box2d">com.badlogic.gdx.physics.box2d.JointDef</A>
112
      <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.joints.RevoluteJointDef</B>
113
</PRE>
114
<HR>
115
<DL>
116
<DT><PRE>public class <B>RevoluteJointDef</B><DT>extends <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html" title="class in com.badlogic.gdx.physics.box2d">JointDef</A></DL>
117
</PRE>
118
 
119
<P>
120
Revolute joint definition. This requires defining an anchor point where the bodies are joined. The definition uses local anchor
121
 points so that the initial configuration can violate the constraint slightly. You also need to specify the initial relative
122
 angle for joint limits. This helps when saving and loading a game. The local anchor points are measured from the body's origin
123
 rather than the center of mass because: 1. you might not know where the center of mass will be. 2. if you add/remove shapes
124
 from a body and recompute the mass, the joints will be broken.
125
<P>
126
 
127
<P>
128
<HR>
129
 
130
<P>
131
<!-- ======== NESTED CLASS SUMMARY ======== -->
132
 
133
<A NAME="nested_class_summary"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137
<B>Nested Class Summary</B></FONT></TH>
138
</TR>
139
</TABLE>
140
&nbsp;<A NAME="nested_classes_inherited_from_class_com.badlogic.gdx.physics.box2d.JointDef"><!-- --></A>
141
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
142
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
143
<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.badlogic.gdx.physics.box2d.<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html" title="class in com.badlogic.gdx.physics.box2d">JointDef</A></B></TH>
144
</TR>
145
<TR BGCOLOR="white" CLASS="TableRowColor">
146
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.JointType.html" title="enum in com.badlogic.gdx.physics.box2d">JointDef.JointType</A></CODE></TD>
147
</TR>
148
</TABLE>
149
&nbsp;
150
<!-- =========== FIELD SUMMARY =========== -->
151
 
152
<A NAME="field_summary"><!-- --></A>
153
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
154
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
155
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
156
<B>Field Summary</B></FONT></TH>
157
</TR>
158
<TR BGCOLOR="white" CLASS="TableRowColor">
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160
<CODE>&nbsp;boolean</CODE></FONT></TD>
161
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html#enableLimit">enableLimit</A></B></CODE>
162
 
163
<BR>
164
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A flag to enable joint limits.</TD>
165
</TR>
166
<TR BGCOLOR="white" CLASS="TableRowColor">
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168
<CODE>&nbsp;boolean</CODE></FONT></TD>
169
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html#enableMotor">enableMotor</A></B></CODE>
170
 
171
<BR>
172
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A flag to enable the joint motor.</TD>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
177
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html#localAnchorA">localAnchorA</A></B></CODE>
178
 
179
<BR>
180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The local anchor point relative to body1's origin.</TD>
181
</TR>
182
<TR BGCOLOR="white" CLASS="TableRowColor">
183
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
185
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html#localAnchorB">localAnchorB</A></B></CODE>
186
 
187
<BR>
188
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The local anchor point relative to body2's origin.</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/RevoluteJointDef.html#lowerAngle">lowerAngle</A></B></CODE>
194
 
195
<BR>
196
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The lower angle for the joint limit (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/RevoluteJointDef.html#maxMotorTorque">maxMotorTorque</A></B></CODE>
202
 
203
<BR>
204
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The maximum motor torque used to achieve the desired motor speed.</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/RevoluteJointDef.html#motorSpeed">motorSpeed</A></B></CODE>
210
 
211
<BR>
212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The desired motor speed.</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/RevoluteJointDef.html#referenceAngle">referenceAngle</A></B></CODE>
218
 
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The body2 angle minus body1 angle in the reference state (radians).</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/RevoluteJointDef.html#upperAngle">upperAngle</A></B></CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The upper angle for the joint limit (radians).</TD>
229
</TR>
230
</TABLE>
231
&nbsp;<A NAME="fields_inherited_from_class_com.badlogic.gdx.physics.box2d.JointDef"><!-- --></A>
232
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
233
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
234
<TH ALIGN="left"><B>Fields inherited from class com.badlogic.gdx.physics.box2d.<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html" title="class in com.badlogic.gdx.physics.box2d">JointDef</A></B></TH>
235
</TR>
236
<TR BGCOLOR="white" CLASS="TableRowColor">
237
<TD><CODE><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html#bodyA">bodyA</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html#bodyB">bodyB</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html#collideConnected">collideConnected</A>, <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/JointDef.html#type">type</A></CODE></TD>
238
</TR>
239
</TABLE>
240
&nbsp;
241
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
242
 
243
<A NAME="constructor_summary"><!-- --></A>
244
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
245
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
246
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
247
<B>Constructor Summary</B></FONT></TH>
248
</TR>
249
<TR BGCOLOR="white" CLASS="TableRowColor">
250
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html#RevoluteJointDef()">RevoluteJointDef</A></B>()</CODE>
251
 
252
<BR>
253
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254
</TR>
255
</TABLE>
256
&nbsp;
257
<!-- ========== METHOD SUMMARY =========== -->
258
 
259
<A NAME="method_summary"><!-- --></A>
260
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
261
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
262
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
263
<B>Method Summary</B></FONT></TH>
264
</TR>
265
<TR BGCOLOR="white" CLASS="TableRowColor">
266
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
267
<CODE>&nbsp;void</CODE></FONT></TD>
268
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html#initialize(com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.math.Vector2)">initialize</A></B>(<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyA,
269
           <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyB,
270
           <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;anchor)</CODE>
271
 
272
<BR>
273
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the bodies, anchors, and reference angle using a world anchor point.</TD>
274
</TR>
275
</TABLE>
276
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
277
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
278
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
279
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
280
</TR>
281
<TR BGCOLOR="white" CLASS="TableRowColor">
282
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
283
</TR>
284
</TABLE>
285
&nbsp;
286
<P>
287
 
288
<!-- ============ FIELD DETAIL =========== -->
289
 
290
<A NAME="field_detail"><!-- --></A>
291
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
292
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
293
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
294
<B>Field Detail</B></FONT></TH>
295
</TR>
296
</TABLE>
297
 
298
<A NAME="localAnchorA"><!-- --></A><H3>
299
localAnchorA</H3>
300
<PRE>
301
public final <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>localAnchorA</B></PRE>
302
<DL>
303
<DD>The local anchor point relative to body1's origin.
304
<P>
305
<DL>
306
</DL>
307
</DL>
308
<HR>
309
 
310
<A NAME="localAnchorB"><!-- --></A><H3>
311
localAnchorB</H3>
312
<PRE>
313
public final <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>localAnchorB</B></PRE>
314
<DL>
315
<DD>The local anchor point relative to body2's origin.
316
<P>
317
<DL>
318
</DL>
319
</DL>
320
<HR>
321
 
322
<A NAME="referenceAngle"><!-- --></A><H3>
323
referenceAngle</H3>
324
<PRE>
325
public float <B>referenceAngle</B></PRE>
326
<DL>
327
<DD>The body2 angle minus body1 angle in the reference state (radians).
328
<P>
329
<DL>
330
</DL>
331
</DL>
332
<HR>
333
 
334
<A NAME="enableLimit"><!-- --></A><H3>
335
enableLimit</H3>
336
<PRE>
337
public boolean <B>enableLimit</B></PRE>
338
<DL>
339
<DD>A flag to enable joint limits.
340
<P>
341
<DL>
342
</DL>
343
</DL>
344
<HR>
345
 
346
<A NAME="lowerAngle"><!-- --></A><H3>
347
lowerAngle</H3>
348
<PRE>
349
public float <B>lowerAngle</B></PRE>
350
<DL>
351
<DD>The lower angle for the joint limit (radians).
352
<P>
353
<DL>
354
</DL>
355
</DL>
356
<HR>
357
 
358
<A NAME="upperAngle"><!-- --></A><H3>
359
upperAngle</H3>
360
<PRE>
361
public float <B>upperAngle</B></PRE>
362
<DL>
363
<DD>The upper angle for the joint limit (radians).
364
<P>
365
<DL>
366
</DL>
367
</DL>
368
<HR>
369
 
370
<A NAME="enableMotor"><!-- --></A><H3>
371
enableMotor</H3>
372
<PRE>
373
public boolean <B>enableMotor</B></PRE>
374
<DL>
375
<DD>A flag to enable the joint motor.
376
<P>
377
<DL>
378
</DL>
379
</DL>
380
<HR>
381
 
382
<A NAME="motorSpeed"><!-- --></A><H3>
383
motorSpeed</H3>
384
<PRE>
385
public float <B>motorSpeed</B></PRE>
386
<DL>
387
<DD>The desired motor speed. Usually in radians per second.
388
<P>
389
<DL>
390
</DL>
391
</DL>
392
<HR>
393
 
394
<A NAME="maxMotorTorque"><!-- --></A><H3>
395
maxMotorTorque</H3>
396
<PRE>
397
public float <B>maxMotorTorque</B></PRE>
398
<DL>
399
<DD>The maximum motor torque used to achieve the desired motor speed. Usually in N-m.
400
<P>
401
<DL>
402
</DL>
403
</DL>
404
 
405
<!-- ========= CONSTRUCTOR DETAIL ======== -->
406
 
407
<A NAME="constructor_detail"><!-- --></A>
408
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
409
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
410
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
411
<B>Constructor Detail</B></FONT></TH>
412
</TR>
413
</TABLE>
414
 
415
<A NAME="RevoluteJointDef()"><!-- --></A><H3>
416
RevoluteJointDef</H3>
417
<PRE>
418
public <B>RevoluteJointDef</B>()</PRE>
419
<DL>
420
</DL>
421
 
422
<!-- ============ METHOD DETAIL ========== -->
423
 
424
<A NAME="method_detail"><!-- --></A>
425
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
426
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
427
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
428
<B>Method Detail</B></FONT></TH>
429
</TR>
430
</TABLE>
431
 
432
<A NAME="initialize(com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
433
initialize</H3>
434
<PRE>
435
public void <B>initialize</B>(<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyA,
436
                       <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyB,
437
                       <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;anchor)</PRE>
438
<DL>
439
<DD>Initialize the bodies, anchors, and reference angle using a world anchor point.
440
<P>
441
<DD><DL>
442
</DL>
443
</DD>
444
</DL>
445
<!-- ========= END OF CLASS DATA ========= -->
446
<HR>
447
 
448
 
449
<!-- ======= START OF BOTTOM NAVBAR ====== -->
450
<A NAME="navbar_bottom"><!-- --></A>
451
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
452
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
453
<TR>
454
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
455
<A NAME="navbar_bottom_firstrow"><!-- --></A>
456
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
457
  <TR ALIGN="center" VALIGN="top">
458
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
459
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
460
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
461
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RevoluteJointDef.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
462
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
463
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
464
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
465
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
466
  </TR>
467
</TABLE>
468
</TD>
469
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
470
libgdx API</EM>
471
</TD>
472
</TR>
473
 
474
<TR>
475
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
476
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>PREV CLASS</B></A>&nbsp;
477
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RopeJoint.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>NEXT CLASS</B></A></FONT></TD>
478
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
479
  <A HREF="../../../../../../index.html?com/badlogic/gdx/physics/box2d/joints/RevoluteJointDef.html" target="_top"><B>FRAMES</B></A>  &nbsp;
480
&nbsp;<A HREF="RevoluteJointDef.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
481
&nbsp;<SCRIPT type="text/javascript">
482
  <!--
483
  if(window==top) {
484
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
485
  }
486
  //-->
487
</SCRIPT>
488
<NOSCRIPT>
489
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
490
</NOSCRIPT>
491
 
492
 
493
</FONT></TD>
494
</TR>
495
<TR>
496
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
497
  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.badlogic.gdx.physics.box2d.JointDef">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
498
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
499
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
500
</TR>
501
</TABLE>
502
<A NAME="skip-navbar_bottom"></A>
503
<!-- ======== END OF BOTTOM NAVBAR ======= -->
504
 
505
<HR>
506
 
507
                                <div style="font-size:9pt"><i>
508
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
509
                                </i></div>
510
 
511
</BODY>
512
</HTML>