Table of Contents

Method b3ScaleBox

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

b3ScaleBox(Vector3*, b3Transform*, Vector3, float)

This takes a box with a transform and post scale and converts it into a box with the post scale resolved with new half-widths and transform. This accepts non-uniform and negative scale. This is approximate if there is shear.

public static extern void b3ScaleBox(Vector3* halfWidths, b3Transform* transform, Vector3 postScale, float minHalfWidth)

Parameters

halfWidths Vector3*

[in/out] the box half widths

transform b3Transform*

[in/out] the box transform with rotation and translation

postScale Vector3

the post scale being applied to the box after the transform

minHalfWidth float

the minimum half width after scale is applied