mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +02:00
Add a "Physics" button and panel
This commit is contained in:
parent
22432671ca
commit
28f9f9e4d0
1 changed files with 22 additions and 0 deletions
|
@ -290,6 +290,15 @@ ToolMenu = function (side, leftInputs, rightInputs, uiCommandCallback) {
|
||||||
method: "pickColorTool"
|
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"
|
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",
|
id: "deleteButton",
|
||||||
type: "button",
|
type: "button",
|
||||||
|
|
Loading…
Reference in a new issue