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:06 CET 2013 --> |
||
| 6 | <TITLE> |
||
| 7 | BodyDef (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="BodyDef (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/BodyDef.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/Body.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.BodyType.html" title="enum 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/BodyDef.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="BodyDef.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.lang.Object">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> | METHOD</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 BodyDef</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.physics.box2d.BodyDef</B> |
||
| 112 | </PRE> |
||
| 113 | <HR> |
||
| 114 | <DL> |
||
| 115 | <DT><PRE>public class <B>BodyDef</B><DT>extends java.lang.Object</DL> |
||
| 116 | </PRE> |
||
| 117 | |||
| 118 | <P> |
||
| 119 | A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions. Shapes are added |
||
| 120 | to a body after construction. |
||
| 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 | <!-- ======== 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 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 140 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 141 | <CODE>static class</CODE></FONT></TD> |
||
| 142 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.BodyType.html" title="enum in com.badlogic.gdx.physics.box2d">BodyDef.BodyType</A></B></CODE> |
||
| 143 | |||
| 144 | <BR> |
||
| 145 | The body type.</TD> |
||
| 146 | </TR> |
||
| 147 | </TABLE> |
||
| 148 | <!-- =========== FIELD SUMMARY =========== --> |
||
| 149 | |||
| 150 | <A NAME="field_summary"><!-- --></A> |
||
| 151 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 152 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 153 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 154 | <B>Field Summary</B></FONT></TH> |
||
| 155 | </TR> |
||
| 156 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 157 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 158 | <CODE> boolean</CODE></FONT></TD> |
||
| 159 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#active">active</A></B></CODE> |
||
| 160 | |||
| 161 | <BR> |
||
| 162 | Does this body start out active?</TD> |
||
| 163 | </TR> |
||
| 164 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 165 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 166 | <CODE> boolean</CODE></FONT></TD> |
||
| 167 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#allowSleep">allowSleep</A></B></CODE> |
||
| 168 | |||
| 169 | <BR> |
||
| 170 | Set this flag to false if this body should never fall asleep.</TD> |
||
| 171 | </TR> |
||
| 172 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 173 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 174 | <CODE> float</CODE></FONT></TD> |
||
| 175 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#angle">angle</A></B></CODE> |
||
| 176 | |||
| 177 | <BR> |
||
| 178 | The world angle of the body in radians.</TD> |
||
| 179 | </TR> |
||
| 180 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 181 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 182 | <CODE> float</CODE></FONT></TD> |
||
| 183 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#angularDamping">angularDamping</A></B></CODE> |
||
| 184 | |||
| 185 | <BR> |
||
| 186 | Angular damping is use to reduce the angular velocity.</TD> |
||
| 187 | </TR> |
||
| 188 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 189 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 190 | <CODE> float</CODE></FONT></TD> |
||
| 191 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#angularVelocity">angularVelocity</A></B></CODE> |
||
| 192 | |||
| 193 | <BR> |
||
| 194 | The angular velocity of the body.</TD> |
||
| 195 | </TR> |
||
| 196 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 197 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 198 | <CODE> boolean</CODE></FONT></TD> |
||
| 199 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#awake">awake</A></B></CODE> |
||
| 200 | |||
| 201 | <BR> |
||
| 202 | Is this body initially awake or sleeping?</TD> |
||
| 203 | </TR> |
||
| 204 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 205 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 206 | <CODE> boolean</CODE></FONT></TD> |
||
| 207 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#bullet">bullet</A></B></CODE> |
||
| 208 | |||
| 209 | <BR> |
||
| 210 | Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are |
||
| 211 | prevented from tunneling through kinematic and static bodies.</TD> |
||
| 212 | </TR> |
||
| 213 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 214 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 215 | <CODE> boolean</CODE></FONT></TD> |
||
| 216 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#fixedRotation">fixedRotation</A></B></CODE> |
||
| 217 | |||
| 218 | <BR> |
||
| 219 | Should this body be prevented from rotating? Useful for characters.</TD> |
||
| 220 | </TR> |
||
| 221 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 222 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 223 | <CODE> float</CODE></FONT></TD> |
||
| 224 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#gravityScale">gravityScale</A></B></CODE> |
||
| 225 | |||
| 226 | <BR> |
||
| 227 | Scale the gravity applied to this body.</TD> |
||
| 228 | </TR> |
||
| 229 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 230 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 231 | <CODE> float</CODE></FONT></TD> |
||
| 232 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#linearDamping">linearDamping</A></B></CODE> |
||
| 233 | |||
| 234 | <BR> |
||
| 235 | Linear damping is use to reduce the linear velocity.</TD> |
||
| 236 | </TR> |
||
| 237 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 238 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 239 | <CODE> <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 240 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#linearVelocity">linearVelocity</A></B></CODE> |
||
| 241 | |||
| 242 | <BR> |
||
| 243 | The linear velocity of the body's origin in world co-ordinates.</TD> |
||
| 244 | </TR> |
||
| 245 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 246 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 247 | <CODE> <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A></CODE></FONT></TD> |
||
| 248 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#position">position</A></B></CODE> |
||
| 249 | |||
| 250 | <BR> |
||
| 251 | The world position of the body.</TD> |
||
| 252 | </TR> |
||
| 253 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 254 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 255 | <CODE> <A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.BodyType.html" title="enum in com.badlogic.gdx.physics.box2d">BodyDef.BodyType</A></CODE></FONT></TD> |
||
| 256 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#type">type</A></B></CODE> |
||
| 257 | |||
| 258 | <BR> |
||
| 259 | The body type: static, kinematic, or dynamic.</TD> |
||
| 260 | </TR> |
||
| 261 | </TABLE> |
||
| 262 | |
||
| 263 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 264 | |||
| 265 | <A NAME="constructor_summary"><!-- --></A> |
||
| 266 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 267 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 268 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 269 | <B>Constructor Summary</B></FONT></TH> |
||
| 270 | </TR> |
||
| 271 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 272 | <TD><CODE><B><A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.html#BodyDef()">BodyDef</A></B>()</CODE> |
||
| 273 | |||
| 274 | <BR> |
||
| 275 | </TD> |
||
| 276 | </TR> |
||
| 277 | </TABLE> |
||
| 278 | |
||
| 279 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 280 | |||
| 281 | <A NAME="method_summary"><!-- --></A> |
||
| 282 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 283 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 284 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 285 | <B>Method Summary</B></FONT></TH> |
||
| 286 | </TR> |
||
| 287 | </TABLE> |
||
| 288 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 289 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 290 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 291 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 292 | </TR> |
||
| 293 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 294 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
||
| 295 | </TR> |
||
| 296 | </TABLE> |
||
| 297 | |
||
| 298 | <P> |
||
| 299 | |||
| 300 | <!-- ============ FIELD DETAIL =========== --> |
||
| 301 | |||
| 302 | <A NAME="field_detail"><!-- --></A> |
||
| 303 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 304 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 305 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 306 | <B>Field Detail</B></FONT></TH> |
||
| 307 | </TR> |
||
| 308 | </TABLE> |
||
| 309 | |||
| 310 | <A NAME="type"><!-- --></A><H3> |
||
| 311 | type</H3> |
||
| 312 | <PRE> |
||
| 313 | public <A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.BodyType.html" title="enum in com.badlogic.gdx.physics.box2d">BodyDef.BodyType</A> <B>type</B></PRE> |
||
| 314 | <DL> |
||
| 315 | <DD>The body type: static, kinematic, or dynamic. Note: if a dynamic body would have zero mass, the mass is set to one. |
||
| 316 | <P> |
||
| 317 | <DL> |
||
| 318 | </DL> |
||
| 319 | </DL> |
||
| 320 | <HR> |
||
| 321 | |||
| 322 | <A NAME="position"><!-- --></A><H3> |
||
| 323 | position</H3> |
||
| 324 | <PRE> |
||
| 325 | public final <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>position</B></PRE> |
||
| 326 | <DL> |
||
| 327 | <DD>The world position of the body. Avoid creating bodies at the origin since this can lead to many overlapping shapes. |
||
| 328 | <P> |
||
| 329 | <DL> |
||
| 330 | </DL> |
||
| 331 | </DL> |
||
| 332 | <HR> |
||
| 333 | |||
| 334 | <A NAME="angle"><!-- --></A><H3> |
||
| 335 | angle</H3> |
||
| 336 | <PRE> |
||
| 337 | public float <B>angle</B></PRE> |
||
| 338 | <DL> |
||
| 339 | <DD>The world angle of the body in radians. |
||
| 340 | <P> |
||
| 341 | <DL> |
||
| 342 | </DL> |
||
| 343 | </DL> |
||
| 344 | <HR> |
||
| 345 | |||
| 346 | <A NAME="linearVelocity"><!-- --></A><H3> |
||
| 347 | linearVelocity</H3> |
||
| 348 | <PRE> |
||
| 349 | public final <A HREF="../../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A> <B>linearVelocity</B></PRE> |
||
| 350 | <DL> |
||
| 351 | <DD>The linear velocity of the body's origin in world co-ordinates. |
||
| 352 | <P> |
||
| 353 | <DL> |
||
| 354 | </DL> |
||
| 355 | </DL> |
||
| 356 | <HR> |
||
| 357 | |||
| 358 | <A NAME="angularVelocity"><!-- --></A><H3> |
||
| 359 | angularVelocity</H3> |
||
| 360 | <PRE> |
||
| 361 | public float <B>angularVelocity</B></PRE> |
||
| 362 | <DL> |
||
| 363 | <DD>The angular velocity of the body. |
||
| 364 | <P> |
||
| 365 | <DL> |
||
| 366 | </DL> |
||
| 367 | </DL> |
||
| 368 | <HR> |
||
| 369 | |||
| 370 | <A NAME="linearDamping"><!-- --></A><H3> |
||
| 371 | linearDamping</H3> |
||
| 372 | <PRE> |
||
| 373 | public float <B>linearDamping</B></PRE> |
||
| 374 | <DL> |
||
| 375 | <DD>Linear damping is use to reduce the linear velocity. The damping parameter can be larger than 1.0f but the damping effect |
||
| 376 | becomes sensitive to the time step when the damping parameter is large. |
||
| 377 | <P> |
||
| 378 | <DL> |
||
| 379 | </DL> |
||
| 380 | </DL> |
||
| 381 | <HR> |
||
| 382 | |||
| 383 | <A NAME="angularDamping"><!-- --></A><H3> |
||
| 384 | angularDamping</H3> |
||
| 385 | <PRE> |
||
| 386 | public float <B>angularDamping</B></PRE> |
||
| 387 | <DL> |
||
| 388 | <DD>Angular damping is use to reduce the angular velocity. The damping parameter can be larger than 1.0f but the damping effect |
||
| 389 | becomes sensitive to the time step when the damping parameter is large. |
||
| 390 | <P> |
||
| 391 | <DL> |
||
| 392 | </DL> |
||
| 393 | </DL> |
||
| 394 | <HR> |
||
| 395 | |||
| 396 | <A NAME="allowSleep"><!-- --></A><H3> |
||
| 397 | allowSleep</H3> |
||
| 398 | <PRE> |
||
| 399 | public boolean <B>allowSleep</B></PRE> |
||
| 400 | <DL> |
||
| 401 | <DD>Set this flag to false if this body should never fall asleep. Note that this increases CPU usage. |
||
| 402 | <P> |
||
| 403 | <DL> |
||
| 404 | </DL> |
||
| 405 | </DL> |
||
| 406 | <HR> |
||
| 407 | |||
| 408 | <A NAME="awake"><!-- --></A><H3> |
||
| 409 | awake</H3> |
||
| 410 | <PRE> |
||
| 411 | public boolean <B>awake</B></PRE> |
||
| 412 | <DL> |
||
| 413 | <DD>Is this body initially awake or sleeping? |
||
| 414 | <P> |
||
| 415 | <DL> |
||
| 416 | </DL> |
||
| 417 | </DL> |
||
| 418 | <HR> |
||
| 419 | |||
| 420 | <A NAME="fixedRotation"><!-- --></A><H3> |
||
| 421 | fixedRotation</H3> |
||
| 422 | <PRE> |
||
| 423 | public boolean <B>fixedRotation</B></PRE> |
||
| 424 | <DL> |
||
| 425 | <DD>Should this body be prevented from rotating? Useful for characters. |
||
| 426 | <P> |
||
| 427 | <DL> |
||
| 428 | </DL> |
||
| 429 | </DL> |
||
| 430 | <HR> |
||
| 431 | |||
| 432 | <A NAME="bullet"><!-- --></A><H3> |
||
| 433 | bullet</H3> |
||
| 434 | <PRE> |
||
| 435 | public boolean <B>bullet</B></PRE> |
||
| 436 | <DL> |
||
| 437 | <DD>Is this a fast moving body that should be prevented from tunneling through other moving bodies? Note that all bodies are |
||
| 438 | prevented from tunneling through kinematic and static bodies. This setting is only considered on dynamic bodies. |
||
| 439 | <P> |
||
| 440 | <DL> |
||
| 441 | </DL> |
||
| 442 | </DL> |
||
| 443 | <HR> |
||
| 444 | |||
| 445 | <A NAME="active"><!-- --></A><H3> |
||
| 446 | active</H3> |
||
| 447 | <PRE> |
||
| 448 | public boolean <B>active</B></PRE> |
||
| 449 | <DL> |
||
| 450 | <DD>Does this body start out active? |
||
| 451 | <P> |
||
| 452 | <DL> |
||
| 453 | </DL> |
||
| 454 | </DL> |
||
| 455 | <HR> |
||
| 456 | |||
| 457 | <A NAME="gravityScale"><!-- --></A><H3> |
||
| 458 | gravityScale</H3> |
||
| 459 | <PRE> |
||
| 460 | public float <B>gravityScale</B></PRE> |
||
| 461 | <DL> |
||
| 462 | <DD>Scale the gravity applied to this body. |
||
| 463 | <P> |
||
| 464 | <DL> |
||
| 465 | </DL> |
||
| 466 | </DL> |
||
| 467 | |||
| 468 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 469 | |||
| 470 | <A NAME="constructor_detail"><!-- --></A> |
||
| 471 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 472 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 473 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 474 | <B>Constructor Detail</B></FONT></TH> |
||
| 475 | </TR> |
||
| 476 | </TABLE> |
||
| 477 | |||
| 478 | <A NAME="BodyDef()"><!-- --></A><H3> |
||
| 479 | BodyDef</H3> |
||
| 480 | <PRE> |
||
| 481 | public <B>BodyDef</B>()</PRE> |
||
| 482 | <DL> |
||
| 483 | </DL> |
||
| 484 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 485 | <HR> |
||
| 486 | |||
| 487 | |||
| 488 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 489 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 490 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 491 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 492 | <TR> |
||
| 493 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 494 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 495 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 496 | <TR ALIGN="center" VALIGN="top"> |
||
| 497 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 498 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 499 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 500 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BodyDef.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 501 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 502 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 503 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 504 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 505 | </TR> |
||
| 506 | </TABLE> |
||
| 507 | </TD> |
||
| 508 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 509 | libgdx API</EM> |
||
| 510 | </TD> |
||
| 511 | </TR> |
||
| 512 | |||
| 513 | <TR> |
||
| 514 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 515 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/Body.html" title="class in com.badlogic.gdx.physics.box2d"><B>PREV CLASS</B></A> |
||
| 516 | <A HREF="../../../../../com/badlogic/gdx/physics/box2d/BodyDef.BodyType.html" title="enum in com.badlogic.gdx.physics.box2d"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 517 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 518 | <A HREF="../../../../../index.html?com/badlogic/gdx/physics/box2d/BodyDef.html" target="_top"><B>FRAMES</B></A> |
||
| 519 | <A HREF="BodyDef.html" target="_top"><B>NO FRAMES</B></A> |
||
| 520 | <SCRIPT type="text/javascript"> |
||
| 521 | <!-- |
||
| 522 | if(window==top) { |
||
| 523 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 524 | } |
||
| 525 | //--> |
||
| 526 | </SCRIPT> |
||
| 527 | <NOSCRIPT> |
||
| 528 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 529 | </NOSCRIPT> |
||
| 530 | |||
| 531 | |||
| 532 | </FONT></TD> |
||
| 533 | </TR> |
||
| 534 | <TR> |
||
| 535 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 536 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#methods_inherited_from_class_java.lang.Object">METHOD</A></FONT></TD> |
||
| 537 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 538 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | METHOD</FONT></TD> |
||
| 539 | </TR> |
||
| 540 | </TABLE> |
||
| 541 | <A NAME="skip-navbar_bottom"></A> |
||
| 542 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 543 | |||
| 544 | <HR> |
||
| 545 | |||
| 546 | <div style="font-size:9pt"><i> |
||
| 547 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 548 | </i></div> |
||
| 549 | |||
| 550 | </BODY> |
||
| 551 | </HTML> |