public static void DrawUrdfPose(AGXUnity.IO.URDF.Pose pose) { EditorGUILayout.PrefixLabel(GUI.MakeLabel("Origin", true)); using (new InspectorGUI.IndentScope()) { InspectorGUI.Vector3Field(GUI.MakeLabel("Position"), pose.Xyz); InspectorGUI.Vector3Field(GUI.MakeLabel("Roll, Pitch, Yaw"), pose.Rpy, "R,P,Y"); } }
public static object UrdfInertiaDrawer(object[] objects, InvokeWrapper wrapper) { var inertia = wrapper.Get <AGXUnity.IO.URDF.Inertia>(objects[0]); InspectorGUI.Vector3Field(InspectorGUI.MakeLabel(wrapper.Member), inertia.GetRow(0), "XX,XY,XZ"); InspectorGUI.Vector3Field(null, inertia.GetRow(1), "YX,YY,YZ"); InspectorGUI.Vector3Field(null, inertia.GetRow(2), "ZX,ZY,ZZ"); return(null); }
public static void DrawUrdfPose(AGXUnity.IO.URDF.Pose pose) { UnityEngine.GUI.Label(EditorGUI.IndentedRect(EditorGUILayout.GetControlRect()), GUI.MakeLabel("Origin", true), InspectorEditor.Skin.Label); using (new InspectorGUI.IndentScope()) { InspectorGUI.Vector3Field(GUI.MakeLabel("Position"), pose.Xyz); InspectorGUI.Vector3Field(GUI.MakeLabel("Roll, Pitch, Yaw"), pose.Rpy, "R,P,Y"); } }
public static object Vector3Drawer(object[] objects, InvokeWrapper wrapper) { return(InspectorGUI.Vector3Field(InspectorGUI.MakeLabel(wrapper.Member), wrapper.Get <Vector3>(objects[0]))); }