GetPerimeterProjected(Vector2)
Get the length of the perimeter of the shape projected onto the specified axis.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public float GetPerimeterProjected(Vector2 axis)
Parameters
The axis to project the perimeter of the shape.
Returns
Type | Description |
|---|---|
| float | The length of the perimeter of the shape projected onto the specified axis. |