Add SphereColliderHelper
							parent
							
								
									2293a27dca
								
							
						
					
					
						commit
						dcaa6f328b
					
				|  | @ -0,0 +1,28 @@ | |||
| # SphereColliderHelper | ||||
|  Component: GameObject | ||||
| 
 | ||||
| | The component attached to the Sphere Collider. We use this as a simple way to retrieve information from the Sphere Collider in one call and send the information to the GPU. |  | | ||||
| | -------- | -------- | | ||||
| 
 | ||||
| ## Friction | ||||
| Float: Min 0, Max 1, Default 0.8. | ||||
| + 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. | ||||
| + 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. | ||||
| + 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. | ||||
| 
 | ||||
| ## Gizmo Color | ||||
| Color: Default Green. | ||||
| + Changes the color of the outliner for the Sphere Collider. | ||||
| 
 | ||||
| ------ | ||||
| 
 | ||||
| # API | ||||
| ## GetCollidableSphereStruct() | ||||
| Returns the following Struct: | ||||
| ```csharp | ||||
| public struct CollidableSphereStruct { | ||||
|     public Vector3 center; | ||||
|     public float radius; | ||||
|     public float friction; | ||||
| } | ||||
| ``` | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user