Pose.Up
Vec3 Up{ get }
Description
Calculates the up (+Y) direction from this pose. This is done by multiplying the orientation with Vec3.Up.
Examples
Pose Directions
Pose
provides a few handy vector properties to help working with
Pose
relative directions! Forward
, Right
, and Up
are all
derived from the Pose
’s orientation, and represent the -Z, +X and
+Y directions of the Pose
.
Pose p = new Pose(0,0,-0.5f);
model.Draw(p.ToMatrix(0.03f));
Lines.Add(p.position, p.position + 0.1f*p.Right, new Color32(255,0,0,255), 0.005f);
Lines.Add(p.position, p.position + 0.1f*p.Up, new Color32(0,255,0,255), 0.005f);
Lines.Add(p.position, p.position + 0.1f*p.Forward, Color32.White, 0.005f);
Found an issue with these docs, or have some additional questions? Create an Issue on Github!