GetGeometry<T>()
Returns the geometric shape of the collider of the requested type.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.PhysicsModule
public T GetGeometry<T>() where T : struct, IGeometry
Returns
Type | Description |
|---|---|
| T | Type of geometrical shape. |
Remarks
Throws an InvalidOperationException if you request a shape that is not present in the collider. Additional Resources: BoxGeometry, SphereGeometry, CapsuleGeometry, ConvexMeshGeometry, TriangleMeshGeometry, TerrainGeometry.