You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
12 KiB

3 years ago
3 years ago
  1. <!DOCTYPE HTML>
  2. <html lang="de">
  3. <head>
  4. <!-- Generated by javadoc (17) on Fri Jun 03 11:30:18 CEST 2022 -->
  5. <title>Uses of Class collider.Collider</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  8. <meta name="dc.created" content="2022-06-03">
  9. <meta name="description" content="use: package: collider, class: Collider">
  10. <meta name="generator" content="javadoc/ClassUseWriter">
  11. <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
  12. <link rel="stylesheet" type="text/css" href="../../script-dir/jquery-ui.min.css" title="Style">
  13. <link rel="stylesheet" type="text/css" href="../../jquery-ui.overrides.css" title="Style">
  14. <script type="text/javascript" src="../../script.js"></script>
  15. <script type="text/javascript" src="../../script-dir/jquery-3.5.1.min.js"></script>
  16. <script type="text/javascript" src="../../script-dir/jquery-ui.min.js"></script>
  17. </head>
  18. <body class="class-use-page">
  19. <script type="text/javascript">var pathtoroot = "../../";
  20. loadScripts(document, 'script');</script>
  21. <noscript>
  22. <div>JavaScript is disabled on your browser.</div>
  23. </noscript>
  24. <div class="flex-box">
  25. <header role="banner" class="flex-header">
  26. <nav role="navigation">
  27. <!-- ========= START OF TOP NAVBAR ======= -->
  28. <div class="top-nav" id="navbar-top">
  29. <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
  30. <ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
  31. <li><a href="../../index.html">Overview</a></li>
  32. <li><a href="../package-summary.html">Package</a></li>
  33. <li><a href="../Collider.html" title="class in collider">Class</a></li>
  34. <li class="nav-bar-cell1-rev">Use</li>
  35. <li><a href="../package-tree.html">Tree</a></li>
  36. <li><a href="../../index-files/index-1.html">Index</a></li>
  37. <li><a href="../../help-doc.html#use">Help</a></li>
  38. </ul>
  39. </div>
  40. <div class="sub-nav">
  41. <div class="nav-list-search"><label for="search-input">SEARCH:</label>
  42. <input type="text" id="search-input" value="search" disabled="disabled">
  43. <input type="reset" id="reset-button" value="reset" disabled="disabled">
  44. </div>
  45. </div>
  46. <!-- ========= END OF TOP NAVBAR ========= -->
  47. <span class="skip-nav" id="skip-navbar-top"></span></nav>
  48. </header>
  49. <div class="flex-content">
  50. <main role="main">
  51. <div class="header">
  52. <h1 title="Uses of Class collider.Collider" class="title">Uses of Class<br>collider.Collider</h1>
  53. </div>
  54. <div class="caption"><span>Packages that use <a href="../Collider.html" title="class in collider">Collider</a></span></div>
  55. <div class="summary-table two-column-summary">
  56. <div class="table-header col-first">Package</div>
  57. <div class="table-header col-last">Description</div>
  58. <div class="col-first even-row-color"><a href="#collider">collider</a></div>
  59. <div class="col-last even-row-color">
  60. <div class="block">The package contains classes implementing a 'bounding box' area around game objects.</div>
  61. </div>
  62. <div class="col-first odd-row-color"><a href="#gameobjects">gameobjects</a></div>
  63. <div class="col-last odd-row-color">
  64. <div class="block">The package gameobjects contains all objects with a visual representation on screen.</div>
  65. </div>
  66. </div>
  67. <section class="class-uses">
  68. <ul class="block-list">
  69. <li>
  70. <section class="detail" id="collider">
  71. <h2>Uses of <a href="../Collider.html" title="class in collider">Collider</a> in <a href="../package-summary.html">collider</a></h2>
  72. <div class="caption"><span>Subclasses of <a href="../Collider.html" title="class in collider">Collider</a> in <a href="../package-summary.html">collider</a></span></div>
  73. <div class="summary-table three-column-summary">
  74. <div class="table-header col-first">Modifier and Type</div>
  75. <div class="table-header col-second">Class</div>
  76. <div class="table-header col-last">Description</div>
  77. <div class="col-first even-row-color"><code>class&nbsp;</code></div>
  78. <div class="col-second even-row-color"><code><a href="../CircleCollider.html" class="type-name-link" title="class in collider">CircleCollider</a></code></div>
  79. <div class="col-last even-row-color">
  80. <div class="block">Collider for round objects</div>
  81. </div>
  82. <div class="col-first odd-row-color"><code>class&nbsp;</code></div>
  83. <div class="col-second odd-row-color"><code><a href="../RectCollider.html" class="type-name-link" title="class in collider">RectCollider</a></code></div>
  84. <div class="col-last odd-row-color">
  85. <div class="block">a <a href="../Collider.html" title="class in collider"><code>Collider</code></a> for Rectangles, usually used for <a href="../../gameobjects/RectObject.html" title="class in gameobjects"><code>RectObject</code></a> instances.</div>
  86. </div>
  87. </div>
  88. <div class="caption"><span>Methods in <a href="../package-summary.html">collider</a> that return <a href="../Collider.html" title="class in collider">Collider</a></span></div>
  89. <div class="summary-table three-column-summary">
  90. <div class="table-header col-first">Modifier and Type</div>
  91. <div class="table-header col-second">Method</div>
  92. <div class="table-header col-last">Description</div>
  93. <div class="col-first even-row-color"><code><a href="../Collider.html" title="class in collider">Collider</a></code></div>
  94. <div class="col-second even-row-color"><span class="type-name-label">Collider.</span><code><a href="../Collider.html#setOffsets(double,double)" class="member-name-link">setOffsets</a><wbr>(double&nbsp;dx,
  95. double&nbsp;dy)</code></div>
  96. <div class="col-last even-row-color">
  97. <div class="block">setter for offset values to be used relative to GameObject center. default is zero.</div>
  98. </div>
  99. </div>
  100. <div class="caption"><span>Methods in <a href="../package-summary.html">collider</a> with parameters of type <a href="../Collider.html" title="class in collider">Collider</a></span></div>
  101. <div class="summary-table three-column-summary">
  102. <div class="table-header col-first">Modifier and Type</div>
  103. <div class="table-header col-second">Method</div>
  104. <div class="table-header col-last">Description</div>
  105. <div class="col-first even-row-color"><code>boolean</code></div>
  106. <div class="col-second even-row-color"><span class="type-name-label">CircleCollider.</span><code><a href="../CircleCollider.html#checkCollisionCircCirc(collider.Collider)" class="member-name-link">checkCollisionCircCirc</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;_c2)</code></div>
  107. <div class="col-last even-row-color">
  108. <div class="block">calculates the collission of this with other collider</div>
  109. </div>
  110. <div class="col-first odd-row-color"><code>boolean</code></div>
  111. <div class="col-second odd-row-color"><span class="type-name-label">RectCollider.</span><code><a href="../RectCollider.html#checkCollisionRectCirc(collider.Collider)" class="member-name-link">checkCollisionRectCirc</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;other)</code></div>
  112. <div class="col-last odd-row-color">
  113. <div class="block">checks collision with other Collider, which needs to be a CircleCollider</div>
  114. </div>
  115. <div class="col-first even-row-color"><code>boolean</code></div>
  116. <div class="col-second even-row-color"><span class="type-name-label">RectCollider.</span><code><a href="../RectCollider.html#checkCollisionRectRect(collider.Collider)" class="member-name-link">checkCollisionRectRect</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;other)</code></div>
  117. <div class="col-last even-row-color">
  118. <div class="block">checks collision with other Collider, which needs to be a RectCollider, too.</div>
  119. </div>
  120. <div class="col-first odd-row-color"><code>boolean</code></div>
  121. <div class="col-second odd-row-color"><span class="type-name-label">CircleCollider.</span><code><a href="../CircleCollider.html#collidesWith(collider.Collider)" class="member-name-link">collidesWith</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;other)</code></div>
  122. <div class="col-last odd-row-color">&nbsp;</div>
  123. <div class="col-first even-row-color"><code>abstract boolean</code></div>
  124. <div class="col-second even-row-color"><span class="type-name-label">Collider.</span><code><a href="../Collider.html#collidesWith(collider.Collider)" class="member-name-link">collidesWith</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;other)</code></div>
  125. <div class="col-last even-row-color">
  126. <div class="block">checks the collission with another collider instance.</div>
  127. </div>
  128. <div class="col-first odd-row-color"><code>boolean</code></div>
  129. <div class="col-second odd-row-color"><span class="type-name-label">RectCollider.</span><code><a href="../RectCollider.html#collidesWith(collider.Collider)" class="member-name-link">collidesWith</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;other)</code></div>
  130. <div class="col-last odd-row-color">&nbsp;</div>
  131. </div>
  132. </section>
  133. </li>
  134. <li>
  135. <section class="detail" id="gameobjects">
  136. <h2>Uses of <a href="../Collider.html" title="class in collider">Collider</a> in <a href="../../gameobjects/package-summary.html">gameobjects</a></h2>
  137. <div class="caption"><span>Fields in <a href="../../gameobjects/package-summary.html">gameobjects</a> with type parameters of type <a href="../Collider.html" title="class in collider">Collider</a></span></div>
  138. <div class="summary-table three-column-summary">
  139. <div class="table-header col-first">Modifier and Type</div>
  140. <div class="table-header col-second">Field</div>
  141. <div class="table-header col-last">Description</div>
  142. <div class="col-first even-row-color"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/LinkedList.html" title="class or interface in java.util" class="external-link">LinkedList</a>&lt;<a href="../Collider.html" title="class in collider">Collider</a>&gt;</code></div>
  143. <div class="col-second even-row-color"><span class="type-name-label">GameObject.</span><code><a href="../../gameobjects/GameObject.html#scol" class="member-name-link">scol</a></code></div>
  144. <div class="col-last even-row-color">&nbsp;</div>
  145. </div>
  146. <div class="caption"><span>Methods in <a href="../../gameobjects/package-summary.html">gameobjects</a> with parameters of type <a href="../Collider.html" title="class in collider">Collider</a></span></div>
  147. <div class="summary-table three-column-summary">
  148. <div class="table-header col-first">Modifier and Type</div>
  149. <div class="table-header col-second">Method</div>
  150. <div class="table-header col-last">Description</div>
  151. <div class="col-first even-row-color"><code>void</code></div>
  152. <div class="col-second even-row-color"><span class="type-name-label">GameObject.</span><code><a href="../../gameobjects/GameObject.html#addCollider(collider.Collider)" class="member-name-link">addCollider</a><wbr>(<a href="../Collider.html" title="class in collider">Collider</a>&nbsp;c)</code></div>
  153. <div class="col-last even-row-color">
  154. <div class="block">saves the collider in the internal list of Colliders to be used for this GameObject.</div>
  155. </div>
  156. </div>
  157. <div class="caption"><span>Method parameters in <a href="../../gameobjects/package-summary.html">gameobjects</a> with type arguments of type <a href="../Collider.html" title="class in collider">Collider</a></span></div>
  158. <div class="summary-table three-column-summary">
  159. <div class="table-header col-first">Modifier and Type</div>
  160. <div class="table-header col-second">Method</div>
  161. <div class="table-header col-last">Description</div>
  162. <div class="col-first even-row-color"><code>void</code></div>
  163. <div class="col-second even-row-color"><span class="type-name-label">GameObject.</span><code><a href="../../gameobjects/GameObject.html#setColliders(java.util.LinkedList)" class="member-name-link">setColliders</a><wbr>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/LinkedList.html" title="class or interface in java.util" class="external-link">LinkedList</a>&lt;<a href="../Collider.html" title="class in collider">Collider</a>&gt;&nbsp;l)</code></div>
  164. <div class="col-last even-row-color">
  165. <div class="block">sets colliders.</div>
  166. </div>
  167. </div>
  168. </section>
  169. </li>
  170. </ul>
  171. </section>
  172. </main>
  173. </div>
  174. </div>
  175. </body>
  176. </html>