Geometry-centric utility functions. More...
Static Public Member Functions | |
static Transform | addEmptyTransform (Transform parent, string name="EmptyTransform", Vector3 localCoords=default(Vector3)) |
Creates a new, empty transform in the scene with a given parent, name and local coordinates More... | |
static Quaternion | ClampQuaternionRotation (Quaternion q, Vector3 bounds) |
Clamps the rotation to a quaternion to the given euler-angle bounds. Eg ClampQuaternionRotation(q, new Vector3(30, 0, 120)) will clamp q to a min/max rotation of +/- 30 deg around the x Axis etc. More... | |
static Quaternion | ClampQuaternionRotation (Quaternion q, Vector3 minbounds, Vector3 maxbounds) |
Clamps the rotation to a quaternion to the given euler-angle bounds. Eg ClampQuaternionRotation(q, new Vector3(30, 0, 120)) will clamp q to a min/max rotation of +/- 30 deg around the x Axis etc. More... | |
Geometry-centric utility functions.
Definition at line 13 of file AVR_Utils.cs.