CreateShapeProxy
Create a shape proxy from the geometry.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
CreateShapeProxy()
Create a shape proxy from the geometry.
public readonly PhysicsShape.ShapeProxy CreateShapeProxy()
Returns
Type | Description |
|---|---|
| ShapeProxy |
CreateShapeProxy(PhysicsTransform)
Create a shape proxy from the geometry, transformed by the specified transform.
public readonly PhysicsShape.ShapeProxy CreateShapeProxy(PhysicsTransform transform)
Parameters
The transform used to position the geometry.
Returns
Type | Description |
|---|---|
| ShapeProxy |
CreateShapeProxy(Matrix4x4, bool)
Create a shape proxy from the geometry, transformed by the specified transform. The maximum absolute value component from the scale will be used to scale the radius when is true.
scaleRadiuspublic readonly PhysicsShape.ShapeProxy CreateShapeProxy(Matrix4x4 transform, bool scaleRadius)
Parameters
Returns
Type | Description |
|---|---|
| ShapeProxy |