Method BuildLocalToWorld
BuildLocalToWorld(int, RigidTransform, float, bool, NativeArray<PostTransformMatrix>)
Construct a LocalToWorld matrix for a rigid body's graphical representation.
Declaration
public static LocalToWorld BuildLocalToWorld(int i, RigidTransform transform, float uniformScale, bool hasPostTransformMatrix, NativeArray<PostTransformMatrix> postTransformMatrices)
Parameters
| Type | Name | Description |
|---|---|---|
| int | i | The index of the rigid body in the chunk. |
| RigidTransform | transform | The body's world space transform. |
| float | uniformScale | The body's uniform scale. |
| bool | hasPostTransformMatrix |
|
| NativeArray<PostTransformMatrix> | postTransformMatrices | The array of post transform matrices in the chunk. |
Returns
| Type | Description |
|---|---|
| LocalToWorld | A LocalToWorld matrix to use in place of those produced by default. |