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