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:09 CEST 2012 -->
6
<TITLE>
7
Contact (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="Contact (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/Contact.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/CircleShape.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/ContactFilter.html" title="interface in com.badlogic.gdx.physics.box2d"><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/Contact.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Contact.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="#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</FONT>
107
<BR>
108
Class Contact</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.Contact</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>Contact</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
The class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if
120
 filtered). Therefore a contact object may exist that has no contact points.
121
<P>
122
 
123
<P>
124
<DL>
125
<DT><B>Author:</B></DT>
126
  <DD>mzechner</DD>
127
</DL>
128
<HR>
129
 
130
<P>
131
<!-- =========== FIELD SUMMARY =========== -->
132
 
133
<A NAME="field_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>Field Summary</B></FONT></TH>
138
</TR>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141
<CODE>protected &nbsp;long</CODE></FONT></TD>
142
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#addr">addr</A></B></CODE>
143
 
144
<BR>
145
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the address</TD>
146
</TR>
147
<TR BGCOLOR="white" CLASS="TableRowColor">
148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149
<CODE>protected &nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d">World</A></CODE></FONT></TD>
150
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#world">world</A></B></CODE>
151
 
152
<BR>
153
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the world</TD>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>protected &nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html" title="class in com.badlogic.gdx.physics.box2d">WorldManifold</A></CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#worldManifold">worldManifold</A></B></CODE>
159
 
160
<BR>
161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the world manifold</TD>
162
</TR>
163
</TABLE>
164
&nbsp;
165
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
166
 
167
<A NAME="constructor_summary"><!-- --></A>
168
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
169
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
170
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
171
<B>Constructor Summary</B></FONT></TH>
172
</TR>
173
<TR BGCOLOR="white" CLASS="TableRowColor">
174
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175
<CODE>protected </CODE></FONT></TD>
176
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#Contact(com.badlogic.gdx.physics.box2d.World, long)">Contact</A></B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d">World</A>&nbsp;world,
177
        long&nbsp;addr)</CODE>
178
 
179
<BR>
180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181
</TR>
182
</TABLE>
183
&nbsp;
184
<!-- ========== METHOD SUMMARY =========== -->
185
 
186
<A NAME="method_summary"><!-- --></A>
187
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
188
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
189
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
190
<B>Method Summary</B></FONT></TH>
191
</TR>
192
<TR BGCOLOR="white" CLASS="TableRowColor">
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194
<CODE>&nbsp;int</CODE></FONT></TD>
195
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getChildIndexA()">getChildIndexA</A></B>()</CODE>
196
 
197
<BR>
198
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the child primitive index for fixture A.</TD>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202
<CODE>&nbsp;int</CODE></FONT></TD>
203
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getChildIndexB()">getChildIndexB</A></B>()</CODE>
204
 
205
<BR>
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the child primitive index for fixture B.</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html" title="class in com.badlogic.gdx.physics.box2d">Fixture</A></CODE></FONT></TD>
211
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getFixtureA()">getFixtureA</A></B>()</CODE>
212
 
213
<BR>
214
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the first fixture in this contact.</TD>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html" title="class in com.badlogic.gdx.physics.box2d">Fixture</A></CODE></FONT></TD>
219
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getFixtureB()">getFixtureB</A></B>()</CODE>
220
 
221
<BR>
222
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the second fixture in this contact.</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>&nbsp;float</CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getFriction()">getFriction</A></B>()</CODE>
228
 
229
<BR>
230
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the friction.</TD>
231
</TR>
232
<TR BGCOLOR="white" CLASS="TableRowColor">
233
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234
<CODE>&nbsp;float</CODE></FONT></TD>
235
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getRestitution()">getRestitution</A></B>()</CODE>
236
 
237
<BR>
238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the restitution.</TD>
239
</TR>
240
<TR BGCOLOR="white" CLASS="TableRowColor">
241
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242
<CODE>&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html" title="class in com.badlogic.gdx.physics.box2d">WorldManifold</A></CODE></FONT></TD>
243
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#getWorldManifold()">getWorldManifold</A></B>()</CODE>
244
 
245
<BR>
246
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
247
</TR>
248
<TR BGCOLOR="white" CLASS="TableRowColor">
249
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250
<CODE>&nbsp;boolean</CODE></FONT></TD>
251
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#isEnabled()">isEnabled</A></B>()</CODE>
252
 
253
<BR>
254
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Has this contact been disabled?</TD>
255
</TR>
256
<TR BGCOLOR="white" CLASS="TableRowColor">
257
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258
<CODE>&nbsp;boolean</CODE></FONT></TD>
259
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#isTouching()">isTouching</A></B>()</CODE>
260
 
261
<BR>
262
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
263
</TR>
264
<TR BGCOLOR="white" CLASS="TableRowColor">
265
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266
<CODE>&nbsp;void</CODE></FONT></TD>
267
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#resetFriction()">resetFriction</A></B>()</CODE>
268
 
269
<BR>
270
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset the friction mixture to the default value.</TD>
271
</TR>
272
<TR BGCOLOR="white" CLASS="TableRowColor">
273
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274
<CODE>&nbsp;void</CODE></FONT></TD>
275
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#ResetRestitution()">ResetRestitution</A></B>()</CODE>
276
 
277
<BR>
278
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset the restitution to the default value.</TD>
279
</TR>
280
<TR BGCOLOR="white" CLASS="TableRowColor">
281
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282
<CODE>&nbsp;void</CODE></FONT></TD>
283
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#setEnabled(boolean)">setEnabled</A></B>(boolean&nbsp;flag)</CODE>
284
 
285
<BR>
286
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable/disable this contact.</TD>
287
</TR>
288
<TR BGCOLOR="white" CLASS="TableRowColor">
289
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
290
<CODE>&nbsp;void</CODE></FONT></TD>
291
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#setFriction(float)">setFriction</A></B>(float&nbsp;friction)</CODE>
292
 
293
<BR>
294
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override the default friction mixture.</TD>
295
</TR>
296
<TR BGCOLOR="white" CLASS="TableRowColor">
297
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298
<CODE>&nbsp;void</CODE></FONT></TD>
299
<TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Contact.html#setRestitution(float)">setRestitution</A></B>(float&nbsp;restitution)</CODE>
300
 
301
<BR>
302
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override the default restitution mixture.</TD>
303
</TR>
304
</TABLE>
305
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
306
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
307
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
308
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
309
</TR>
310
<TR BGCOLOR="white" CLASS="TableRowColor">
311
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
312
</TR>
313
</TABLE>
314
&nbsp;
315
<P>
316
 
317
<!-- ============ FIELD DETAIL =========== -->
318
 
319
<A NAME="field_detail"><!-- --></A>
320
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
321
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
322
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
323
<B>Field Detail</B></FONT></TH>
324
</TR>
325
</TABLE>
326
 
327
<A NAME="addr"><!-- --></A><H3>
328
addr</H3>
329
<PRE>
330
protected long <B>addr</B></PRE>
331
<DL>
332
<DD>the address
333
<P>
334
<DL>
335
</DL>
336
</DL>
337
<HR>
338
 
339
<A NAME="world"><!-- --></A><H3>
340
world</H3>
341
<PRE>
342
protected <A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d">World</A> <B>world</B></PRE>
343
<DL>
344
<DD>the world
345
<P>
346
<DL>
347
</DL>
348
</DL>
349
<HR>
350
 
351
<A NAME="worldManifold"><!-- --></A><H3>
352
worldManifold</H3>
353
<PRE>
354
protected final <A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html" title="class in com.badlogic.gdx.physics.box2d">WorldManifold</A> <B>worldManifold</B></PRE>
355
<DL>
356
<DD>the world manifold
357
<P>
358
<DL>
359
</DL>
360
</DL>
361
 
362
<!-- ========= CONSTRUCTOR DETAIL ======== -->
363
 
364
<A NAME="constructor_detail"><!-- --></A>
365
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
366
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
367
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
368
<B>Constructor Detail</B></FONT></TH>
369
</TR>
370
</TABLE>
371
 
372
<A NAME="Contact(com.badlogic.gdx.physics.box2d.World, long)"><!-- --></A><H3>
373
Contact</H3>
374
<PRE>
375
protected <B>Contact</B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/World.html" title="class in com.badlogic.gdx.physics.box2d">World</A>&nbsp;world,
376
                  long&nbsp;addr)</PRE>
377
<DL>
378
</DL>
379
 
380
<!-- ============ METHOD DETAIL ========== -->
381
 
382
<A NAME="method_detail"><!-- --></A>
383
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
384
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
385
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
386
<B>Method Detail</B></FONT></TH>
387
</TR>
388
</TABLE>
389
 
390
<A NAME="getWorldManifold()"><!-- --></A><H3>
391
getWorldManifold</H3>
392
<PRE>
393
public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/WorldManifold.html" title="class in com.badlogic.gdx.physics.box2d">WorldManifold</A> <B>getWorldManifold</B>()</PRE>
394
<DL>
395
<DD><DL>
396
</DL>
397
</DD>
398
</DL>
399
<HR>
400
 
401
<A NAME="isTouching()"><!-- --></A><H3>
402
isTouching</H3>
403
<PRE>
404
public boolean <B>isTouching</B>()</PRE>
405
<DL>
406
<DD><DL>
407
</DL>
408
</DD>
409
</DL>
410
<HR>
411
 
412
<A NAME="setEnabled(boolean)"><!-- --></A><H3>
413
setEnabled</H3>
414
<PRE>
415
public void <B>setEnabled</B>(boolean&nbsp;flag)</PRE>
416
<DL>
417
<DD>Enable/disable this contact. This can be used inside the pre-solve contact listener. The contact is only disabled for the
418
 current time step (or sub-step in continuous collisions).
419
<P>
420
<DD><DL>
421
</DL>
422
</DD>
423
</DL>
424
<HR>
425
 
426
<A NAME="isEnabled()"><!-- --></A><H3>
427
isEnabled</H3>
428
<PRE>
429
public boolean <B>isEnabled</B>()</PRE>
430
<DL>
431
<DD>Has this contact been disabled?
432
<P>
433
<DD><DL>
434
</DL>
435
</DD>
436
</DL>
437
<HR>
438
 
439
<A NAME="getFixtureA()"><!-- --></A><H3>
440
getFixtureA</H3>
441
<PRE>
442
public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html" title="class in com.badlogic.gdx.physics.box2d">Fixture</A> <B>getFixtureA</B>()</PRE>
443
<DL>
444
<DD>Get the first fixture in this contact.
445
<P>
446
<DD><DL>
447
</DL>
448
</DD>
449
</DL>
450
<HR>
451
 
452
<A NAME="getFixtureB()"><!-- --></A><H3>
453
getFixtureB</H3>
454
<PRE>
455
public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html" title="class in com.badlogic.gdx.physics.box2d">Fixture</A> <B>getFixtureB</B>()</PRE>
456
<DL>
457
<DD>Get the second fixture in this contact.
458
<P>
459
<DD><DL>
460
</DL>
461
</DD>
462
</DL>
463
<HR>
464
 
465
<A NAME="getChildIndexA()"><!-- --></A><H3>
466
getChildIndexA</H3>
467
<PRE>
468
public int <B>getChildIndexA</B>()</PRE>
469
<DL>
470
<DD>Get the child primitive index for fixture A.
471
<P>
472
<DD><DL>
473
</DL>
474
</DD>
475
</DL>
476
<HR>
477
 
478
<A NAME="getChildIndexB()"><!-- --></A><H3>
479
getChildIndexB</H3>
480
<PRE>
481
public int <B>getChildIndexB</B>()</PRE>
482
<DL>
483
<DD>Get the child primitive index for fixture B.
484
<P>
485
<DD><DL>
486
</DL>
487
</DD>
488
</DL>
489
<HR>
490
 
491
<A NAME="setFriction(float)"><!-- --></A><H3>
492
setFriction</H3>
493
<PRE>
494
public void <B>setFriction</B>(float&nbsp;friction)</PRE>
495
<DL>
496
<DD>Override the default friction mixture. You can call this in b2ContactListener::PreSolve. This value persists until set or
497
 reset.
498
<P>
499
<DD><DL>
500
</DL>
501
</DD>
502
</DL>
503
<HR>
504
 
505
<A NAME="getFriction()"><!-- --></A><H3>
506
getFriction</H3>
507
<PRE>
508
public float <B>getFriction</B>()</PRE>
509
<DL>
510
<DD>Get the friction.
511
<P>
512
<DD><DL>
513
</DL>
514
</DD>
515
</DL>
516
<HR>
517
 
518
<A NAME="resetFriction()"><!-- --></A><H3>
519
resetFriction</H3>
520
<PRE>
521
public void <B>resetFriction</B>()</PRE>
522
<DL>
523
<DD>Reset the friction mixture to the default value.
524
<P>
525
<DD><DL>
526
</DL>
527
</DD>
528
</DL>
529
<HR>
530
 
531
<A NAME="setRestitution(float)"><!-- --></A><H3>
532
setRestitution</H3>
533
<PRE>
534
public void <B>setRestitution</B>(float&nbsp;restitution)</PRE>
535
<DL>
536
<DD>Override the default restitution mixture. You can call this in b2ContactListener::PreSolve. The value persists until you set
537
 or reset.
538
<P>
539
<DD><DL>
540
</DL>
541
</DD>
542
</DL>
543
<HR>
544
 
545
<A NAME="getRestitution()"><!-- --></A><H3>
546
getRestitution</H3>
547
<PRE>
548
public float <B>getRestitution</B>()</PRE>
549
<DL>
550
<DD>Get the restitution.
551
<P>
552
<DD><DL>
553
</DL>
554
</DD>
555
</DL>
556
<HR>
557
 
558
<A NAME="ResetRestitution()"><!-- --></A><H3>
559
ResetRestitution</H3>
560
<PRE>
561
public void <B>ResetRestitution</B>()</PRE>
562
<DL>
563
<DD>Reset the restitution to the default value.
564
<P>
565
<DD><DL>
566
</DL>
567
</DD>
568
</DL>
569
<!-- ========= END OF CLASS DATA ========= -->
570
<HR>
571
 
572
 
573
<!-- ======= START OF BOTTOM NAVBAR ====== -->
574
<A NAME="navbar_bottom"><!-- --></A>
575
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
576
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
577
<TR>
578
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
579
<A NAME="navbar_bottom_firstrow"><!-- --></A>
580
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
581
  <TR ALIGN="center" VALIGN="top">
582
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
583
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
584
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
585
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Contact.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
586
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
587
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
588
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
589
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
590
  </TR>
591
</TABLE>
592
</TD>
593
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
594
libgdx API</EM>
595
</TD>
596
</TR>
597
 
598
<TR>
599
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
600
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/CircleShape.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A>&nbsp;
601
&nbsp;<A HREF="../../../../../com/badlogic/gdx/physics/box2d/ContactFilter.html" title="interface in com.badlogic.gdx.physics.box2d"><B>NEXT CLASS</B></A></FONT></TD>
602
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
603
  <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/Contact.html" target="_top"><B>FRAMES</B></A>  &nbsp;
604
&nbsp;<A HREF="Contact.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
605
&nbsp;<SCRIPT type="text/javascript">
606
  <!--
607
  if(window==top) {
608
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
609
  }
610
  //-->
611
</SCRIPT>
612
<NOSCRIPT>
613
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
614
</NOSCRIPT>
615
 
616
 
617
</FONT></TD>
618
</TR>
619
<TR>
620
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
621
  SUMMARY:&nbsp;NESTED&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>
622
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
623
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>
624
</TR>
625
</TABLE>
626
<A NAME="skip-navbar_bottom"></A>
627
<!-- ======== END OF BOTTOM NAVBAR ======= -->
628
 
629
<HR>
630
 
631
                                <div style="font-size:9pt"><i>
632
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
633
                                </i></div>
634
 
635
</BODY>
636
</HTML>