Create<T>(T)
Create a GeometryHolder object with a specified geometric shape.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics
- Assembly: UnityEngine.PhysicsModule
public static GeometryHolder Create<T>(T geometry) where T : struct, IGeometry
Parameters
Returns
Type | Description |
|---|---|
| GeometryHolder | Returns the GeometryHolder object with the geometric shape stored inside. |
Remarks
Additional Resources: BoxGeometry, SphereGeometry, CapsuleGeometry, ConvexMeshGeometry, TriangleMeshGeometry, TerrainGeometry.