Add a "Physics" button and panel

This commit is contained in:
David Rowe 2017-08-09 11:02:33 +12:00
parent 22432671ca
commit 28f9f9e4d0

View file

@ -290,6 +290,15 @@ ToolMenu = function (side, leftInputs, rightInputs, uiCommandCallback) {
method: "pickColorTool"
}
}
],
physicsOptions: [
{
id: "physicsOptionsPanel",
type: "panel",
properties: {
localPosition: { x: 0.055, y: 0.0, z: -0.005 }
}
}
]
},
@ -352,6 +361,19 @@ ToolMenu = function (side, leftInputs, rightInputs, uiCommandCallback) {
parameter: "currentColor.color"
}
},
{
id: "physicsButton",
type: "button",
properties: {
localPosition: { x: -0.022, y: 0.04, z: -0.005 },
color: { red: 60, green: 60, blue: 240 }
},
label: "PHYSICS",
toolOptions: "physicsOptions",
callback: {
method: "physicsTool"
}
},
{
id: "deleteButton",
type: "button",