Transform
Transform the geometry.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
Transform(PhysicsTransform)
Transform the geometry.
public readonly ChainSegmentGeometry Transform(PhysicsTransform transform)
Parameters
The geometry to transform with.
Returns
Type | Description |
|---|---|
| ChainSegmentGeometry | The transformed geometry. |
Transform(Matrix4x4)
Transform the geometry.
public readonly ChainSegmentGeometry Transform(Matrix4x4 transform)
Parameters
The transform to be used on the geometry.
Returns
Type | Description |
|---|---|
| ChainSegmentGeometry | The transformed geometry. |
Transform(Span<ChainSegmentGeometry>, PhysicsTransform)
Transform a batch of geometry in place.
public static void Transform(Span<ChainSegmentGeometry> geometry, PhysicsTransform transform)
Parameters
The geometry to transform in place.
The transform to apply.
Transform(Span<ChainSegmentGeometry>, Matrix4x4)
Transform a batch of geometry in place.
public static void Transform(Span<ChainSegmentGeometry> geometry, Matrix4x4 transform)
Parameters
The geometry to transform in place.
The transform to apply.