static Mesh <VertexPositionColor> CreateTranslationGizmo() { var axisX = CreateArrow(Matrix44.CreateRotationZ(-Mathf.HalfPi), Color4.Red); var axisY = CreateArrow(Matrix44.Identity, Color4.Green); var axisZ = CreateArrow(Matrix44.CreateRotationX(Mathf.HalfPi), Color4.Blue); return(MeshUtils.Combine(axisX, axisY, axisZ)); }
public void Rotate(float r) { Effect(Matrix44.CreateRotationZ(r)); }