Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
307 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 Jun 03 02:18:11 CEST 2012 -->
6
<TITLE>
7
PulleyJointDef (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2012-06-03">
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="PulleyJointDef (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/PulleyJointDef.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/PulleyJoint.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/RevoluteJoint.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/PulleyJointDef.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="PulleyJointDef.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 PulleyJointDef</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.PulleyJointDef</B>
113
</PRE>
114
<HR>
115
<DL>
116
<DT><PRE>public class <B>PulleyJointDef</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
Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a
121
 pulley ratio.
122
<P>
123
 
124
<P>
125
<HR>
126
 
127
<P>
128
<!-- ======== NESTED CLASS SUMMARY ======== -->
129
 
130
<A NAME="nested_class_summary"><!-- --></A>
131
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
133
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
134
<B>Nested Class Summary</B></FONT></TH>
135
</TR>
136
</TABLE>
137
&nbsp;<A NAME="nested_classes_inherited_from_class_com.badlogic.gdx.physics.box2d.JointDef"><!-- --></A>
138
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
139
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
140
<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>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<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>
144
</TR>
145
</TABLE>
146
&nbsp;
147
<!-- =========== FIELD SUMMARY =========== -->
148
 
149
<A NAME="field_summary"><!-- --></A>
150
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153
<B>Field Summary</B></FONT></TH>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#groundAnchorA">groundAnchorA</A></B></CODE>
159
 
160
<BR>
161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The first ground anchor in world coordinates.</TD>
162
</TR>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#groundAnchorB">groundAnchorB</A></B></CODE>
167
 
168
<BR>
169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The second ground anchor in world coordinates.</TD>
170
</TR>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>&nbsp;float</CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#lengthA">lengthA</A></B></CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The a reference length for the segment attached to bodyA.</TD>
178
</TR>
179
<TR BGCOLOR="white" CLASS="TableRowColor">
180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181
<CODE>&nbsp;float</CODE></FONT></TD>
182
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#lengthB">lengthB</A></B></CODE>
183
 
184
<BR>
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The a reference length for the segment attached to bodyB.</TD>
186
</TR>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
190
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#localAnchorA">localAnchorA</A></B></CODE>
191
 
192
<BR>
193
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The local anchor point relative to bodyA's origin.</TD>
194
</TR>
195
<TR BGCOLOR="white" CLASS="TableRowColor">
196
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197
<CODE>&nbsp;<A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD>
198
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#localAnchorB">localAnchorB</A></B></CODE>
199
 
200
<BR>
201
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The local anchor point relative to bodyB's origin.</TD>
202
</TR>
203
<TR BGCOLOR="white" CLASS="TableRowColor">
204
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205
<CODE>&nbsp;float</CODE></FONT></TD>
206
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#ratio">ratio</A></B></CODE>
207
 
208
<BR>
209
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The pulley ratio, used to simulate a block-and-tackle.</TD>
210
</TR>
211
</TABLE>
212
&nbsp;<A NAME="fields_inherited_from_class_com.badlogic.gdx.physics.box2d.JointDef"><!-- --></A>
213
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
214
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
215
<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>
216
</TR>
217
<TR BGCOLOR="white" CLASS="TableRowColor">
218
<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>
219
</TR>
220
</TABLE>
221
&nbsp;
222
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
223
 
224
<A NAME="constructor_summary"><!-- --></A>
225
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
226
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
227
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
228
<B>Constructor Summary</B></FONT></TH>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#PulleyJointDef()">PulleyJointDef</A></B>()</CODE>
232
 
233
<BR>
234
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
235
</TR>
236
</TABLE>
237
&nbsp;
238
<!-- ========== METHOD SUMMARY =========== -->
239
 
240
<A NAME="method_summary"><!-- --></A>
241
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
243
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
244
<B>Method Summary</B></FONT></TH>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>&nbsp;void</CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html#initialize(com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, float)">initialize</A></B>(<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyA,
250
           <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyB,
251
           <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;groundAnchorA,
252
           <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;groundAnchorB,
253
           <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;anchorA,
254
           <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;anchorB,
255
           float&nbsp;ratio)</CODE>
256
 
257
<BR>
258
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.</TD>
259
</TR>
260
</TABLE>
261
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
262
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
264
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
265
</TR>
266
<TR BGCOLOR="white" CLASS="TableRowColor">
267
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
268
</TR>
269
</TABLE>
270
&nbsp;
271
<P>
272
 
273
<!-- ============ FIELD DETAIL =========== -->
274
 
275
<A NAME="field_detail"><!-- --></A>
276
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
277
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
278
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
279
<B>Field Detail</B></FONT></TH>
280
</TR>
281
</TABLE>
282
 
283
<A NAME="groundAnchorA"><!-- --></A><H3>
284
groundAnchorA</H3>
285
<PRE>
286
public final <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>groundAnchorA</B></PRE>
287
<DL>
288
<DD>The first ground anchor in world coordinates. This point never moves.
289
<P>
290
<DL>
291
</DL>
292
</DL>
293
<HR>
294
 
295
<A NAME="groundAnchorB"><!-- --></A><H3>
296
groundAnchorB</H3>
297
<PRE>
298
public final <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>groundAnchorB</B></PRE>
299
<DL>
300
<DD>The second ground anchor in world coordinates. This point never moves.
301
<P>
302
<DL>
303
</DL>
304
</DL>
305
<HR>
306
 
307
<A NAME="localAnchorA"><!-- --></A><H3>
308
localAnchorA</H3>
309
<PRE>
310
public final <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>localAnchorA</B></PRE>
311
<DL>
312
<DD>The local anchor point relative to bodyA's origin.
313
<P>
314
<DL>
315
</DL>
316
</DL>
317
<HR>
318
 
319
<A NAME="localAnchorB"><!-- --></A><H3>
320
localAnchorB</H3>
321
<PRE>
322
public final <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>localAnchorB</B></PRE>
323
<DL>
324
<DD>The local anchor point relative to bodyB's origin.
325
<P>
326
<DL>
327
</DL>
328
</DL>
329
<HR>
330
 
331
<A NAME="lengthA"><!-- --></A><H3>
332
lengthA</H3>
333
<PRE>
334
public float <B>lengthA</B></PRE>
335
<DL>
336
<DD>The a reference length for the segment attached to bodyA.
337
<P>
338
<DL>
339
</DL>
340
</DL>
341
<HR>
342
 
343
<A NAME="lengthB"><!-- --></A><H3>
344
lengthB</H3>
345
<PRE>
346
public float <B>lengthB</B></PRE>
347
<DL>
348
<DD>The a reference length for the segment attached to bodyB.
349
<P>
350
<DL>
351
</DL>
352
</DL>
353
<HR>
354
 
355
<A NAME="ratio"><!-- --></A><H3>
356
ratio</H3>
357
<PRE>
358
public float <B>ratio</B></PRE>
359
<DL>
360
<DD>The pulley ratio, used to simulate a block-and-tackle.
361
<P>
362
<DL>
363
</DL>
364
</DL>
365
 
366
<!-- ========= CONSTRUCTOR DETAIL ======== -->
367
 
368
<A NAME="constructor_detail"><!-- --></A>
369
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
370
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
371
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
372
<B>Constructor Detail</B></FONT></TH>
373
</TR>
374
</TABLE>
375
 
376
<A NAME="PulleyJointDef()"><!-- --></A><H3>
377
PulleyJointDef</H3>
378
<PRE>
379
public <B>PulleyJointDef</B>()</PRE>
380
<DL>
381
</DL>
382
 
383
<!-- ============ METHOD DETAIL ========== -->
384
 
385
<A NAME="method_detail"><!-- --></A>
386
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
387
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
388
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
389
<B>Method Detail</B></FONT></TH>
390
</TR>
391
</TABLE>
392
 
393
<A NAME="initialize(com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.physics.box2d.Body, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, float)"><!-- --></A><H3>
394
initialize</H3>
395
<PRE>
396
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,
397
                       <A HREF="../../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A>&nbsp;bodyB,
398
                       <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;groundAnchorA,
399
                       <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;groundAnchorB,
400
                       <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;anchorA,
401
                       <A HREF="../../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;anchorB,
402
                       float&nbsp;ratio)</PRE>
403
<DL>
404
<DD>Initialize the bodies, anchors, lengths, max lengths, and ratio using the world anchors.
405
<P>
406
<DD><DL>
407
</DL>
408
</DD>
409
</DL>
410
<!-- ========= END OF CLASS DATA ========= -->
411
<HR>
412
 
413
 
414
<!-- ======= START OF BOTTOM NAVBAR ====== -->
415
<A NAME="navbar_bottom"><!-- --></A>
416
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
417
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
418
<TR>
419
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
420
<A NAME="navbar_bottom_firstrow"><!-- --></A>
421
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
422
  <TR ALIGN="center" VALIGN="top">
423
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
424
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
425
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
426
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PulleyJointDef.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
427
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
428
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
429
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
430
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
431
  </TR>
432
</TABLE>
433
</TD>
434
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
435
libgdx API</EM>
436
</TD>
437
</TR>
438
 
439
<TR>
440
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
441
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/PulleyJoint.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>PREV CLASS</B></A>&nbsp;
442
&nbsp;<A HREF="../../../../../../com/badlogic/gdx/physics/box2d/joints/RevoluteJoint.html" title="class in com.badlogic.gdx.physics.box2d.joints"><B>NEXT CLASS</B></A></FONT></TD>
443
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
444
  <A HREF="../../../../../../index.html?com/badlogic/gdx/physics/box2d/joints/PulleyJointDef.html" target="_top"><B>FRAMES</B></A>  &nbsp;
445
&nbsp;<A HREF="PulleyJointDef.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
446
&nbsp;<SCRIPT type="text/javascript">
447
  <!--
448
  if(window==top) {
449
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
450
  }
451
  //-->
452
</SCRIPT>
453
<NOSCRIPT>
454
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
455
</NOSCRIPT>
456
 
457
 
458
</FONT></TD>
459
</TR>
460
<TR>
461
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
462
  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>
463
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
464
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>
465
</TR>
466
</TABLE>
467
<A NAME="skip-navbar_bottom"></A>
468
<!-- ======== END OF BOTTOM NAVBAR ======= -->
469
 
470
<HR>
471
 
472
                                <div style="font-size:9pt"><i>
473
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
474
                                </i></div>
475
 
476
</BODY>
477
</HTML>