Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

PolygonGeometry.Transform

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public PolygonGeometry Transform(PhysicsTransform transform);

Parameters

Parameter Description
transform The transform used to specify where the geometry is positioned.

Returns

PolygonGeometry The transformed geometry.

Description

Transform the specified geometry.


Declaration

public PolygonGeometry Transform(Matrix4x4 transform, bool scaleRadius);

Parameters

Parameter Description
transform The transform used to specify where the geometry is positioned.
scaleRadius Whether to scale the radius of the shape.

Returns

PolygonGeometry The transformed geometry.

Description

Transform the specified geometry. The maximum absolute value component from the scale will be used to scale the PolygonGeometry.radius.


Declaration

public static void Transform(Span<PolygonGeometry> geometry, PhysicsTransform transform);

Parameters

Parameter Description
geometry The geometry to transform in place.
transform The transform to apply.

Description

Transform a batch of geometry in place. A transform that degenerates the geometry hull writes an invalid (zero-vertex) polygon in its place.


Declaration

public static void Transform(Span<PolygonGeometry> geometry, Matrix4x4 transform, bool scaleRadius);

Parameters

Parameter Description
geometry The geometry to transform in place.
transform The transform to apply.
scaleRadius Whether to scale the radius of the shape.

Description

Transform a batch of geometry in place. The maximum absolute value component from the scale will be used to scale each PolygonGeometry.radius. A transform that degenerates the geometry hull writes an invalid (zero-vertex) polygon in its place.