Update BoxColliderHelper

Schaken 2025-01-20 22:35:07 -05:00
parent e1617a6a6c
commit c113f97b82

@ -1 +1,28 @@
BoxColliderHelper
<h1 id="toc0"><span>Component: GameObject</span></h1>
<p>The component attached to the Box Collider. We use this as a simple way to retrieve information from the Box Collider in one call and send the information to the GPU.</p>
<div class="image-container alignright"><a href="http://gpuclothphysics.wdfiles.com/local--files/boxcolliderhelper/Box%20Collider.png"><img src="http://gpuclothphysics.wdfiles.com/local--resized-images/boxcolliderhelper/Box%20Collider.png/medium.jpg" alt="Box%20Collider.png" class="image"></a></div>
<h2 id="toc1"><span>Friction</span></h2>
<p>Float: Min 0, Max 1, Default 0.8.</p>
<ul>
<li>Low Friction (e.g., 0.1): The cloth will slide more easily over the surface. It will maintain more of its velocity when colliding with the collider.</li>
<li>High Friction (e.g., 0.9): The cloth will "stick" more to the surface. It will lose more of its velocity when colliding with the collider.</li>
<li>High Friction (e.g., 1.0): The cloth will behave as if it's "stuck" to the surface, maintaining its position relative to the collider.</li>
</ul>
<h2 id="toc2"><span>Gizmo Color</span></h2>
<p>Color: Default Green.</p>
<ul>
<li>Changes the color of the outliner for the Box Collider.</li>
</ul>
<hr>
<h1 id="toc3"><span>API</span></h1>
<ul>
<li>GetCollidableBoxStruct()</li>
</ul>
<p>Returns the following Struct:</p>
<div class="code">
<pre><code>public struct CollidableCubeStruct {
public Vector3 center;
public Vector3 rotation;
public Vector3 extent;
public float friction;
}</code></pre></div>