Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

PhysicsShape.CreateShapeProxy

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 ShapeProxy CreateShapeProxy(bool useWorldSpace);

Parameters

Parameter Description
useWorldSpace Whether to create the shape proxy in world-space or not. World-space will transform by the body origin the shape is attached to.

Description

Create a shape proxy from the shape.


Declaration

public ShapeProxy CreateShapeProxy(PhysicsTransform transform);

Parameters

Parameter Description
transform The transform used to position the shape geometry.

Description

Create a shape proxy from the shape, transformed by the specified transform.


Declaration

public ShapeProxy CreateShapeProxy(Matrix4x4 transform, bool scaleRadius);

Parameters

Parameter Description
transform The transform used to position the shape geometry.
scaleRadius Whether to scale the radius of the shape. Only affects shape types that carry a radius (Circle, Capsule, Polygon).

Description

Create a shape proxy from the shape, transformed by the specified transform. The maximum absolute value component from the scale will be used to scale the radius when is true. Shape types without a radius ignore the flag.