Table of Contents

Method b3SafeScale

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3SafeScale(Vector3)

Makes a scale value safe for scaling collision geometry.

public static Vector3 b3SafeScale(Vector3 a)

Parameters

a Vector3

The requested scale.

Returns

Vector3

The scale, with each component pushed away from zero.

Remarks

Negative scale is preserved; magnitudes are clamped up to Box3D.Native.Constants.B3_MIN_SCALE.