Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InverseTransform

Inverse-Transform the geometry.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

InverseTransform(PhysicsTransform)

Inverse-Transform the geometry.
public readonly PolygonGeometry InverseTransform(PhysicsTransform transform)

Parameters

The geometry to transform with.

Returns

Type

Description

PolygonGeometryThe inverse-transformed geometry.

InverseTransform(Matrix4x4, bool)

Inverse-Transform the geometry. The maximum (minimum in the inverse) absolute value component from the scale will be used to scale the _radius.
public readonly PolygonGeometry InverseTransform(Matrix4x4 transform, bool scaleRadius)

Parameters

transform

The transform to be used on the geometry.

scaleRadius

Whether to scale the radius of the shape.

Returns

Type

Description

PolygonGeometryThe inverse-transformed geometry.

InverseTransform(Span<PolygonGeometry>, PhysicsTransform)

Inverse-Transform a batch of geometry in place. A transform that degenerates the geometry hull writes an invalid (zero-vertex) polygon in its place.
public static void InverseTransform(Span<PolygonGeometry> geometry, PhysicsTransform transform)

Parameters

The geometry to inverse-transform in place.

The transform to apply.

InverseTransform(Span<PolygonGeometry>, Matrix4x4, bool)

Inverse-Transform a batch of geometry in place. The minimum absolute value component from the inverted scale will be used to scale each _radius. A transform that degenerates the geometry hull writes an invalid (zero-vertex) polygon in its place.
public static void InverseTransform(Span<PolygonGeometry> geometry, Matrix4x4 transform, bool scaleRadius)

Parameters

The geometry to inverse-transform in place.

transform

The transform to apply.

scaleRadius

Whether to scale the radius of the shape.