Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

CapsuleGeometry.InverseTransform

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 CapsuleGeometry InverseTransform(PhysicsTransform transform);

Parameters

Parameter Description
transform The geometry to transform with.

Returns

CapsuleGeometry The inverse-transformed geometry.

Description

Inverse-Transform the geometry.


Declaration

public CapsuleGeometry InverseTransform(Matrix4x4 transform, bool scaleRadius);

Parameters

Parameter Description
transform The transform to be used on the geometry.
scaleRadius Whether to scale the radius of the shape.

Returns

CapsuleGeometry The inverse-transformed geometry.

Description

Inverse-Transform the geometry. The maximum (minimum in the inverse) absolute value component from the scale will be used to scale the CapsuleGeometry.radius.


Declaration

public static void InverseTransform(Span<CapsuleGeometry> geometry, PhysicsTransform transform);

Parameters

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

Description

Inverse-Transform a batch of geometry in place.


Declaration

public static void InverseTransform(Span<CapsuleGeometry> geometry, Matrix4x4 transform, bool scaleRadius);

Parameters

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

Description

Inverse-Transform a batch of geometry in place. The minimum absolute value component from the inverted scale will be used to scale the CapsuleGeometry.radius.