Class CapsuleGeometryAuthoringExtensions
Namespace: Unity.Physics.Authoring
Syntax
public static class CapsuleGeometryAuthoringExtensions
Methods
ToAuthoring(CapsuleGeometry)
Construct a CapsuleGeometryAuthoring instance from a run-time CapsuleGeometry instance.
Declaration
public static CapsuleGeometryAuthoring ToAuthoring(this CapsuleGeometry input)
Parameters
Type | Name | Description |
---|---|---|
CapsuleGeometry | input | A run-time CapsuleGeometry instance. |
Returns
Type | Description |
---|---|
CapsuleGeometryAuthoring |
ToRuntime(CapsuleGeometryAuthoring)
Construct a run-time CapsuleGeometry instance from a CapsuleGeometryAuthoring instance.
Declaration
public static CapsuleGeometry ToRuntime(this CapsuleGeometryAuthoring input)
Parameters
Type | Name | Description |
---|---|---|
CapsuleGeometryAuthoring | input | A CapsuleGeometryAuthoring instance. |
Returns
Type | Description |
---|---|
CapsuleGeometry |