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 | Fixture (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="Fixture (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> </TD> |
||
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Fixture.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Filter.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/FixtureDef.html" title="class 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/Fixture.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="Fixture.html" target="_top"><B>NO FRAMES</B></A> |
||
| 78 | <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 95 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 96 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 Fixture</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.Fixture</B> |
||
| 112 | </PRE> |
||
| 113 | <HR> |
||
| 114 | <DL> |
||
| 115 | <DT><PRE>public class <B>Fixture</B><DT>extends java.lang.Object</DL> |
||
| 116 | </PRE> |
||
| 117 | |||
| 118 | <P> |
||
| 119 | <HR> |
||
| 120 | |||
| 121 | <P> |
||
| 122 | <!-- =========== FIELD SUMMARY =========== --> |
||
| 123 | |||
| 124 | <A NAME="field_summary"><!-- --></A> |
||
| 125 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 126 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 127 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 128 | <B>Field Summary</B></FONT></TH> |
||
| 129 | </TR> |
||
| 130 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 131 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 132 | <CODE>protected long</CODE></FONT></TD> |
||
| 133 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#addr">addr</A></B></CODE> |
||
| 134 | |||
| 135 | <BR> |
||
| 136 | the address of the fixture</TD> |
||
| 137 | </TR> |
||
| 138 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 139 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 140 | <CODE>protected <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.html" title="class in com.badlogic.gdx.physics.box2d">Shape</A></CODE></FONT></TD> |
||
| 141 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#shape">shape</A></B></CODE> |
||
| 142 | |||
| 143 | <BR> |
||
| 144 | the shape, initialized lazy</TD> |
||
| 145 | </TR> |
||
| 146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 147 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 148 | <CODE>protected java.lang.Object</CODE></FONT></TD> |
||
| 149 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#userData">userData</A></B></CODE> |
||
| 150 | |||
| 151 | <BR> |
||
| 152 | user specified data</TD> |
||
| 153 | </TR> |
||
| 154 | </TABLE> |
||
| 155 | |
||
| 156 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 157 | |||
| 158 | <A NAME="constructor_summary"><!-- --></A> |
||
| 159 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 160 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 161 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 162 | <B>Constructor Summary</B></FONT></TH> |
||
| 163 | </TR> |
||
| 164 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 166 | <CODE>protected </CODE></FONT></TD> |
||
| 167 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#Fixture(com.badlogic.gdx.physics.box2d.Body, long)">Fixture</A></B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A> body, |
||
| 168 | long addr)</CODE> |
||
| 169 | |||
| 170 | <BR> |
||
| 171 | Constructs a new fixture</TD> |
||
| 172 | </TR> |
||
| 173 | </TABLE> |
||
| 174 | |
||
| 175 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 176 | |||
| 177 | <A NAME="method_summary"><!-- --></A> |
||
| 178 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 179 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 180 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 181 | <B>Method Summary</B></FONT></TH> |
||
| 182 | </TR> |
||
| 183 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 185 | <CODE> <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A></CODE></FONT></TD> |
||
| 186 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getBody()">getBody</A></B>()</CODE> |
||
| 187 | |||
| 188 | <BR> |
||
| 189 | Get the parent body of this fixture.</TD> |
||
| 190 | </TR> |
||
| 191 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 193 | <CODE> float</CODE></FONT></TD> |
||
| 194 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getDensity()">getDensity</A></B>()</CODE> |
||
| 195 | |||
| 196 | <BR> |
||
| 197 | Get the density of this fixture.</TD> |
||
| 198 | </TR> |
||
| 199 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 201 | <CODE> <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Filter.html" title="class in com.badlogic.gdx.physics.box2d">Filter</A></CODE></FONT></TD> |
||
| 202 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getFilterData()">getFilterData</A></B>()</CODE> |
||
| 203 | |||
| 204 | <BR> |
||
| 205 | </TD> |
||
| 206 | </TR> |
||
| 207 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 208 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 209 | <CODE> float</CODE></FONT></TD> |
||
| 210 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getFriction()">getFriction</A></B>()</CODE> |
||
| 211 | |||
| 212 | <BR> |
||
| 213 | Get the coefficient of friction.</TD> |
||
| 214 | </TR> |
||
| 215 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 216 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 217 | <CODE> float</CODE></FONT></TD> |
||
| 218 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getRestitution()">getRestitution</A></B>()</CODE> |
||
| 219 | |||
| 220 | <BR> |
||
| 221 | Get the coefficient of restitution.</TD> |
||
| 222 | </TR> |
||
| 223 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 224 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 225 | <CODE> <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.html" title="class in com.badlogic.gdx.physics.box2d">Shape</A></CODE></FONT></TD> |
||
| 226 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getShape()">getShape</A></B>()</CODE> |
||
| 227 | |||
| 228 | <BR> |
||
| 229 | Returns the shape of this fixture</TD> |
||
| 230 | </TR> |
||
| 231 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 232 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 233 | <CODE> <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.Type.html" title="enum in com.badlogic.gdx.physics.box2d">Shape.Type</A></CODE></FONT></TD> |
||
| 234 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getType()">getType</A></B>()</CODE> |
||
| 235 | |||
| 236 | <BR> |
||
| 237 | Get the type of the child shape.</TD> |
||
| 238 | </TR> |
||
| 239 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 240 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 241 | <CODE> java.lang.Object</CODE></FONT></TD> |
||
| 242 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#getUserData()">getUserData</A></B>()</CODE> |
||
| 243 | |||
| 244 | <BR> |
||
| 245 | </TD> |
||
| 246 | </TR> |
||
| 247 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 249 | <CODE> boolean</CODE></FONT></TD> |
||
| 250 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#isSensor()">isSensor</A></B>()</CODE> |
||
| 251 | |||
| 252 | <BR> |
||
| 253 | Is this fixture a sensor (non-solid)?</TD> |
||
| 254 | </TR> |
||
| 255 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 257 | <CODE> void</CODE></FONT></TD> |
||
| 258 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#refilter()">refilter</A></B>()</CODE> |
||
| 259 | |||
| 260 | <BR> |
||
| 261 | Call this if you want to establish collision that was previously disabled by b2ContactFilter::ShouldCollide.</TD> |
||
| 262 | </TR> |
||
| 263 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 264 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 265 | <CODE>protected void</CODE></FONT></TD> |
||
| 266 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#reset(com.badlogic.gdx.physics.box2d.Body, long)">reset</A></B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A> body, |
||
| 267 | long addr)</CODE> |
||
| 268 | |||
| 269 | <BR> |
||
| 270 | </TD> |
||
| 271 | </TR> |
||
| 272 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 273 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 274 | <CODE> void</CODE></FONT></TD> |
||
| 275 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#setDensity(float)">setDensity</A></B>(float density)</CODE> |
||
| 276 | |||
| 277 | <BR> |
||
| 278 | Set the density of this fixture.</TD> |
||
| 279 | </TR> |
||
| 280 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 281 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 282 | <CODE> void</CODE></FONT></TD> |
||
| 283 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#setFilterData(com.badlogic.gdx.physics.box2d.Filter)">setFilterData</A></B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Filter.html" title="class in com.badlogic.gdx.physics.box2d">Filter</A> filter)</CODE> |
||
| 284 | |||
| 285 | <BR> |
||
| 286 | Set the contact filtering data.</TD> |
||
| 287 | </TR> |
||
| 288 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 289 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 290 | <CODE> void</CODE></FONT></TD> |
||
| 291 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#setFriction(float)">setFriction</A></B>(float friction)</CODE> |
||
| 292 | |||
| 293 | <BR> |
||
| 294 | Set the coefficient of friction.</TD> |
||
| 295 | </TR> |
||
| 296 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 297 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 298 | <CODE> void</CODE></FONT></TD> |
||
| 299 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#setRestitution(float)">setRestitution</A></B>(float restitution)</CODE> |
||
| 300 | |||
| 301 | <BR> |
||
| 302 | Set the coefficient of restitution.</TD> |
||
| 303 | </TR> |
||
| 304 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 305 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 306 | <CODE> void</CODE></FONT></TD> |
||
| 307 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#setSensor(boolean)">setSensor</A></B>(boolean sensor)</CODE> |
||
| 308 | |||
| 309 | <BR> |
||
| 310 | Set if this fixture is a sensor.</TD> |
||
| 311 | </TR> |
||
| 312 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 313 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 314 | <CODE> void</CODE></FONT></TD> |
||
| 315 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#setUserData(java.lang.Object)">setUserData</A></B>(java.lang.Object userData)</CODE> |
||
| 316 | |||
| 317 | <BR> |
||
| 318 | Sets custom user data.</TD> |
||
| 319 | </TR> |
||
| 320 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 321 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 322 | <CODE> boolean</CODE></FONT></TD> |
||
| 323 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#testPoint(float, float)">testPoint</A></B>(float x, |
||
| 324 | float y)</CODE> |
||
| 325 | |||
| 326 | <BR> |
||
| 327 | Test a point for containment in this fixture.</TD> |
||
| 328 | </TR> |
||
| 329 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 330 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 331 | <CODE> boolean</CODE></FONT></TD> |
||
| 332 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/Fixture.html#testPoint(com.badlogic.gdx.math.Vector2)">testPoint</A></B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> p)</CODE> |
||
| 333 | |||
| 334 | <BR> |
||
| 335 | Test a point for containment in this fixture.</TD> |
||
| 336 | </TR> |
||
| 337 | </TABLE> |
||
| 338 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 339 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 340 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 341 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 342 | </TR> |
||
| 343 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 344 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
| 345 | </TR> |
||
| 346 | </TABLE> |
||
| 347 | |
||
| 348 | <P> |
||
| 349 | |||
| 350 | <!-- ============ FIELD DETAIL =========== --> |
||
| 351 | |||
| 352 | <A NAME="field_detail"><!-- --></A> |
||
| 353 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 354 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 355 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 356 | <B>Field Detail</B></FONT></TH> |
||
| 357 | </TR> |
||
| 358 | </TABLE> |
||
| 359 | |||
| 360 | <A NAME="addr"><!-- --></A><H3> |
||
| 361 | addr</H3> |
||
| 362 | <PRE> |
||
| 363 | protected long <B>addr</B></PRE> |
||
| 364 | <DL> |
||
| 365 | <DD>the address of the fixture |
||
| 366 | <P> |
||
| 367 | <DL> |
||
| 368 | </DL> |
||
| 369 | </DL> |
||
| 370 | <HR> |
||
| 371 | |||
| 372 | <A NAME="shape"><!-- --></A><H3> |
||
| 373 | shape</H3> |
||
| 374 | <PRE> |
||
| 375 | protected <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.html" title="class in com.badlogic.gdx.physics.box2d">Shape</A> <B>shape</B></PRE> |
||
| 376 | <DL> |
||
| 377 | <DD>the shape, initialized lazy |
||
| 378 | <P> |
||
| 379 | <DL> |
||
| 380 | </DL> |
||
| 381 | </DL> |
||
| 382 | <HR> |
||
| 383 | |||
| 384 | <A NAME="userData"><!-- --></A><H3> |
||
| 385 | userData</H3> |
||
| 386 | <PRE> |
||
| 387 | protected java.lang.Object <B>userData</B></PRE> |
||
| 388 | <DL> |
||
| 389 | <DD>user specified data |
||
| 390 | <P> |
||
| 391 | <DL> |
||
| 392 | </DL> |
||
| 393 | </DL> |
||
| 394 | |||
| 395 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 396 | |||
| 397 | <A NAME="constructor_detail"><!-- --></A> |
||
| 398 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 399 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 400 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 401 | <B>Constructor Detail</B></FONT></TH> |
||
| 402 | </TR> |
||
| 403 | </TABLE> |
||
| 404 | |||
| 405 | <A NAME="Fixture(com.badlogic.gdx.physics.box2d.Body, long)"><!-- --></A><H3> |
||
| 406 | Fixture</H3> |
||
| 407 | <PRE> |
||
| 408 | protected <B>Fixture</B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A> body, |
||
| 409 | long addr)</PRE> |
||
| 410 | <DL> |
||
| 411 | <DD>Constructs a new fixture |
||
| 412 | <P> |
||
| 413 | <DL> |
||
| 414 | <DT><B>Parameters:</B><DD><CODE>addr</CODE> - the address of the fixture</DL> |
||
| 415 | </DL> |
||
| 416 | |||
| 417 | <!-- ============ METHOD DETAIL ========== --> |
||
| 418 | |||
| 419 | <A NAME="method_detail"><!-- --></A> |
||
| 420 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 421 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 422 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 423 | <B>Method Detail</B></FONT></TH> |
||
| 424 | </TR> |
||
| 425 | </TABLE> |
||
| 426 | |||
| 427 | <A NAME="reset(com.badlogic.gdx.physics.box2d.Body, long)"><!-- --></A><H3> |
||
| 428 | reset</H3> |
||
| 429 | <PRE> |
||
| 430 | protected void <B>reset</B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A> body, |
||
| 431 | long addr)</PRE> |
||
| 432 | <DL> |
||
| 433 | <DD><DL> |
||
| 434 | </DL> |
||
| 435 | </DD> |
||
| 436 | </DL> |
||
| 437 | <HR> |
||
| 438 | |||
| 439 | <A NAME="getType()"><!-- --></A><H3> |
||
| 440 | getType</H3> |
||
| 441 | <PRE> |
||
| 442 | public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.Type.html" title="enum in com.badlogic.gdx.physics.box2d">Shape.Type</A> <B>getType</B>()</PRE> |
||
| 443 | <DL> |
||
| 444 | <DD>Get the type of the child shape. You can use this to down cast to the concrete shape. |
||
| 445 | <P> |
||
| 446 | <DD><DL> |
||
| 447 | |||
| 448 | <DT><B>Returns:</B><DD>the shape type.</DL> |
||
| 449 | </DD> |
||
| 450 | </DL> |
||
| 451 | <HR> |
||
| 452 | |||
| 453 | <A NAME="getShape()"><!-- --></A><H3> |
||
| 454 | getShape</H3> |
||
| 455 | <PRE> |
||
| 456 | public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Shape.html" title="class in com.badlogic.gdx.physics.box2d">Shape</A> <B>getShape</B>()</PRE> |
||
| 457 | <DL> |
||
| 458 | <DD>Returns the shape of this fixture |
||
| 459 | <P> |
||
| 460 | <DD><DL> |
||
| 461 | </DL> |
||
| 462 | </DD> |
||
| 463 | </DL> |
||
| 464 | <HR> |
||
| 465 | |||
| 466 | <A NAME="setSensor(boolean)"><!-- --></A><H3> |
||
| 467 | setSensor</H3> |
||
| 468 | <PRE> |
||
| 469 | public void <B>setSensor</B>(boolean sensor)</PRE> |
||
| 470 | <DL> |
||
| 471 | <DD>Set if this fixture is a sensor. |
||
| 472 | <P> |
||
| 473 | <DD><DL> |
||
| 474 | </DL> |
||
| 475 | </DD> |
||
| 476 | </DL> |
||
| 477 | <HR> |
||
| 478 | |||
| 479 | <A NAME="isSensor()"><!-- --></A><H3> |
||
| 480 | isSensor</H3> |
||
| 481 | <PRE> |
||
| 482 | public boolean <B>isSensor</B>()</PRE> |
||
| 483 | <DL> |
||
| 484 | <DD>Is this fixture a sensor (non-solid)? |
||
| 485 | <P> |
||
| 486 | <DD><DL> |
||
| 487 | |||
| 488 | <DT><B>Returns:</B><DD>the true if the shape is a sensor.</DL> |
||
| 489 | </DD> |
||
| 490 | </DL> |
||
| 491 | <HR> |
||
| 492 | |||
| 493 | <A NAME="setFilterData(com.badlogic.gdx.physics.box2d.Filter)"><!-- --></A><H3> |
||
| 494 | setFilterData</H3> |
||
| 495 | <PRE> |
||
| 496 | public void <B>setFilterData</B>(<A HREF="../../../../../com/badlogic/gdx/physics/box2d/Filter.html" title="class in com.badlogic.gdx.physics.box2d">Filter</A> filter)</PRE> |
||
| 497 | <DL> |
||
| 498 | <DD>Set the contact filtering data. This will not update contacts until the next time step when either parent body is active and |
||
| 499 | awake. This automatically calls Refilter. |
||
| 500 | <P> |
||
| 501 | <DD><DL> |
||
| 502 | </DL> |
||
| 503 | </DD> |
||
| 504 | </DL> |
||
| 505 | <HR> |
||
| 506 | |||
| 507 | <A NAME="getFilterData()"><!-- --></A><H3> |
||
| 508 | getFilterData</H3> |
||
| 509 | <PRE> |
||
| 510 | public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Filter.html" title="class in com.badlogic.gdx.physics.box2d">Filter</A> <B>getFilterData</B>()</PRE> |
||
| 511 | <DL> |
||
| 512 | <DD><DL> |
||
| 513 | </DL> |
||
| 514 | </DD> |
||
| 515 | </DL> |
||
| 516 | <HR> |
||
| 517 | |||
| 518 | <A NAME="refilter()"><!-- --></A><H3> |
||
| 519 | refilter</H3> |
||
| 520 | <PRE> |
||
| 521 | public void <B>refilter</B>()</PRE> |
||
| 522 | <DL> |
||
| 523 | <DD>Call this if you want to establish collision that was previously disabled by b2ContactFilter::ShouldCollide. |
||
| 524 | <P> |
||
| 525 | <DD><DL> |
||
| 526 | </DL> |
||
| 527 | </DD> |
||
| 528 | </DL> |
||
| 529 | <HR> |
||
| 530 | |||
| 531 | <A NAME="getBody()"><!-- --></A><H3> |
||
| 532 | getBody</H3> |
||
| 533 | <PRE> |
||
| 534 | public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d">Body</A> <B>getBody</B>()</PRE> |
||
| 535 | <DL> |
||
| 536 | <DD>Get the parent body of this fixture. This is NULL if the fixture is not attached. |
||
| 537 | <P> |
||
| 538 | <DD><DL> |
||
| 539 | </DL> |
||
| 540 | </DD> |
||
| 541 | </DL> |
||
| 542 | <HR> |
||
| 543 | |||
| 544 | <A NAME="testPoint(com.badlogic.gdx.math.Vector2)"><!-- --></A><H3> |
||
| 545 | testPoint</H3> |
||
| 546 | <PRE> |
||
| 547 | public boolean <B>testPoint</B>(<A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> p)</PRE> |
||
| 548 | <DL> |
||
| 549 | <DD>Test a point for containment in this fixture. |
||
| 550 | <P> |
||
| 551 | <DD><DL> |
||
| 552 | <DT><B>Parameters:</B><DD><CODE>p</CODE> - a point in world coordinates.</DL> |
||
| 553 | </DD> |
||
| 554 | </DL> |
||
| 555 | <HR> |
||
| 556 | |||
| 557 | <A NAME="testPoint(float, float)"><!-- --></A><H3> |
||
| 558 | testPoint</H3> |
||
| 559 | <PRE> |
||
| 560 | public boolean <B>testPoint</B>(float x, |
||
| 561 | float y)</PRE> |
||
| 562 | <DL> |
||
| 563 | <DD>Test a point for containment in this fixture. |
||
| 564 | <P> |
||
| 565 | <DD><DL> |
||
| 566 | <DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-coordinate<DD><CODE>y</CODE> - the y-coordinate</DL> |
||
| 567 | </DD> |
||
| 568 | </DL> |
||
| 569 | <HR> |
||
| 570 | |||
| 571 | <A NAME="setDensity(float)"><!-- --></A><H3> |
||
| 572 | setDensity</H3> |
||
| 573 | <PRE> |
||
| 574 | public void <B>setDensity</B>(float density)</PRE> |
||
| 575 | <DL> |
||
| 576 | <DD>Set the density of this fixture. This will _not_ automatically adjust the mass of the body. You must call |
||
| 577 | b2Body::ResetMassData to update the body's mass. |
||
| 578 | <P> |
||
| 579 | <DD><DL> |
||
| 580 | </DL> |
||
| 581 | </DD> |
||
| 582 | </DL> |
||
| 583 | <HR> |
||
| 584 | |||
| 585 | <A NAME="getDensity()"><!-- --></A><H3> |
||
| 586 | getDensity</H3> |
||
| 587 | <PRE> |
||
| 588 | public float <B>getDensity</B>()</PRE> |
||
| 589 | <DL> |
||
| 590 | <DD>Get the density of this fixture. |
||
| 591 | <P> |
||
| 592 | <DD><DL> |
||
| 593 | </DL> |
||
| 594 | </DD> |
||
| 595 | </DL> |
||
| 596 | <HR> |
||
| 597 | |||
| 598 | <A NAME="getFriction()"><!-- --></A><H3> |
||
| 599 | getFriction</H3> |
||
| 600 | <PRE> |
||
| 601 | public float <B>getFriction</B>()</PRE> |
||
| 602 | <DL> |
||
| 603 | <DD>Get the coefficient of friction. |
||
| 604 | <P> |
||
| 605 | <DD><DL> |
||
| 606 | </DL> |
||
| 607 | </DD> |
||
| 608 | </DL> |
||
| 609 | <HR> |
||
| 610 | |||
| 611 | <A NAME="setFriction(float)"><!-- --></A><H3> |
||
| 612 | setFriction</H3> |
||
| 613 | <PRE> |
||
| 614 | public void <B>setFriction</B>(float friction)</PRE> |
||
| 615 | <DL> |
||
| 616 | <DD>Set the coefficient of friction. |
||
| 617 | <P> |
||
| 618 | <DD><DL> |
||
| 619 | </DL> |
||
| 620 | </DD> |
||
| 621 | </DL> |
||
| 622 | <HR> |
||
| 623 | |||
| 624 | <A NAME="getRestitution()"><!-- --></A><H3> |
||
| 625 | getRestitution</H3> |
||
| 626 | <PRE> |
||
| 627 | public float <B>getRestitution</B>()</PRE> |
||
| 628 | <DL> |
||
| 629 | <DD>Get the coefficient of restitution. |
||
| 630 | <P> |
||
| 631 | <DD><DL> |
||
| 632 | </DL> |
||
| 633 | </DD> |
||
| 634 | </DL> |
||
| 635 | <HR> |
||
| 636 | |||
| 637 | <A NAME="setRestitution(float)"><!-- --></A><H3> |
||
| 638 | setRestitution</H3> |
||
| 639 | <PRE> |
||
| 640 | public void <B>setRestitution</B>(float restitution)</PRE> |
||
| 641 | <DL> |
||
| 642 | <DD>Set the coefficient of restitution. |
||
| 643 | <P> |
||
| 644 | <DD><DL> |
||
| 645 | </DL> |
||
| 646 | </DD> |
||
| 647 | </DL> |
||
| 648 | <HR> |
||
| 649 | |||
| 650 | <A NAME="setUserData(java.lang.Object)"><!-- --></A><H3> |
||
| 651 | setUserData</H3> |
||
| 652 | <PRE> |
||
| 653 | public void <B>setUserData</B>(java.lang.Object userData)</PRE> |
||
| 654 | <DL> |
||
| 655 | <DD>Sets custom user data. |
||
| 656 | <P> |
||
| 657 | <DD><DL> |
||
| 658 | </DL> |
||
| 659 | </DD> |
||
| 660 | </DL> |
||
| 661 | <HR> |
||
| 662 | |||
| 663 | <A NAME="getUserData()"><!-- --></A><H3> |
||
| 664 | getUserData</H3> |
||
| 665 | <PRE> |
||
| 666 | public java.lang.Object <B>getUserData</B>()</PRE> |
||
| 667 | <DL> |
||
| 668 | <DD><DL> |
||
| 669 | |||
| 670 | <DT><B>Returns:</B><DD>custom user data</DL> |
||
| 671 | </DD> |
||
| 672 | </DL> |
||
| 673 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 674 | <HR> |
||
| 675 | |||
| 676 | |||
| 677 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 678 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 679 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 680 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 681 | <TR> |
||
| 682 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 683 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 684 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 685 | <TR ALIGN="center" VALIGN="top"> |
||
| 686 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 687 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 688 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 689 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Fixture.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 690 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 691 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 692 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 693 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 694 | </TR> |
||
| 695 | </TABLE> |
||
| 696 | </TD> |
||
| 697 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 698 | libgdx API</EM> |
||
| 699 | </TD> |
||
| 700 | </TR> |
||
| 701 | |||
| 702 | <TR> |
||
| 703 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 704 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Filter.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A> |
||
| 705 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/FixtureDef.html" title="class in com.badlogic.gdx.physics.box2d"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 706 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 707 | <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/Fixture.html" target="_top"><B>FRAMES</B></A> |
||
| 708 | <A HREF="Fixture.html" target="_top"><B>NO FRAMES</B></A> |
||
| 709 | <SCRIPT type="text/javascript"> |
||
| 710 | <!-- |
||
| 711 | if(window==top) { |
||
| 712 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 713 | } |
||
| 714 | //--> |
||
| 715 | </SCRIPT> |
||
| 716 | <NOSCRIPT> |
||
| 717 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 718 | </NOSCRIPT> |
||
| 719 | |||
| 720 | |||
| 721 | </FONT></TD> |
||
| 722 | </TR> |
||
| 723 | <TR> |
||
| 724 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 725 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 726 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 727 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 728 | </TR> |
||
| 729 | </TABLE> |
||
| 730 | <A NAME="skip-navbar_bottom"></A> |
||
| 731 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 732 | |||
| 733 | <HR> |
||
| 734 | |||
| 735 | <div style="font-size:9pt"><i> |
||
| 736 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 737 | </i></div> |
||
| 738 | |||
| 739 | </BODY> |
||
| 740 | </HTML> |