Color legend plain property method
The directions of the gizmo’s three axes in world space: the world’s own for the global frame, a target’s for the local one. Unit length, but not always perpendicular.
A read-only struct. The targets page shows it in context, with code.
Names are colored by what they are: a property or a method; values and fields keep the plain color.
Properties
IsLeftHanded →
bool · Read-only. Whether the frame is mirrored: (X × Y) · Z is negative, as for an object with one or three negative scales. Two negative scales make a half turn, which is right-handed. The gizmo turns a rotate drag the other way on a mirrored target.
Fields
World →
GizmoBasis · Static, read-only field. The world’s axes, Vector3.UnitX, Vector3.UnitY and Vector3.UnitZ: the frame of the global modes.
X →
Vector3 · Read-only field. The +X axis, a unit vector in world space.
Y →
Vector3 · Read-only field. The +Y axis, a unit vector in world space.
Z →
Vector3 · Read-only field. The +Z axis, a unit vector in world space.
Methods
GizmoBasis() →
GizmoBasis(Vector3 x, Vector3 y, Vector3 z) · A basis of the axes as given. They must be unit length already: for the rows of a world matrix, which carry the object’s scale, use FromObjectAxes.
| Parameter | Type | Description |
|---|---|---|
x |
Vector3 |
The +X axis, a unit vector. |
y |
Vector3 |
The +Y axis, a unit vector. |
z |
Vector3 |
The +Z axis, a unit vector. |
Direction() →
Direction(GizmoAxis axis) · The direction of the axis: X, Y or Z, or Vector3.Zero for None, Center and the plane handles XY, XZ and YZ.
| Parameter | Type | Description |
|---|---|---|
axis |
GizmoAxis |
The axis to look up. |
FromObjectAxes() →
FromObjectAxes(Vector3 x, Vector3 y, Vector3 z) · Static. An object’s own axes as they point in world space, from the rows of its world matrix: Right, Up and Backward. Each is normalized with its direction kept, so skew and mirroring stay; an axis of length zero becomes the matching world axis.
| Parameter | Type | Description |
|---|---|---|
x |
Vector3 |
The object’s +X in world space, of any length. |
y |
Vector3 |
Its +Y, of any length. |
z |
Vector3 |
Its +Z, of any length. |
Orthonormalized() →
Orthonormalized() · A copy with perpendicular axes, the closest to this basis, and mirrored if it is. Gram–Schmidt from X: X stays, Y loses its part along X, and Z its parts along both. The same axes for a basis with no shear, an approximation for one with shear. A Y along X takes a perpendicular from Z, a Z in the X–Y plane completes the frame right-handed, and a basis collapsed onto one line comes back as World.
PlaneBasis() →
PlaneBasis(GizmoAxis axis, out Vector3 u, out Vector3 v) · Two perpendicular unit vectors spanning the plane square to the axis, with u × v along the axis, so turning from u toward v is a positive turn about it. Built from the axis alone, so square to it in a skewed basis too. Where u lies around the circle is arbitrary: use differences of angles. For None, Center, a plane handle or an axis of length zero, Vector3.UnitX and Vector3.UnitY.
| Parameter | Type | Description |
|---|---|---|
axis |
GizmoAxis |
The axis the plane is square to. |
u |
out Vector3 |
The first direction in the plane. |
v |
out Vector3 |
The second, a quarter turn from u about the axis. |