Transform
Transform the geometry.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
Transform(PhysicsTransform)
Transform the geometry.
public readonly CapsuleGeometry Transform(PhysicsTransform transform)
Parameters
The geometry to transform with.
Returns
Type | Description |
|---|---|
| CapsuleGeometry | The transformed geometry. |
Transform(Matrix4x4, bool)
Transform the geometry. The maximum absolute value component from the scale will be used to scale the CapsuleGeometry.radius.
public readonly CapsuleGeometry Transform(Matrix4x4 transform, bool scaleRadius)
Parameters
Returns
Type | Description |
|---|---|
| CapsuleGeometry | The transformed geometry. |