mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 13:07:55 +02:00
Add extra Create palette items
This commit is contained in:
parent
a757012c10
commit
e4a126461b
5 changed files with 58 additions and 4 deletions
BIN
scripts/vr-edit/assets/create/circle.fbx
Normal file
BIN
scripts/vr-edit/assets/create/circle.fbx
Normal file
Binary file not shown.
BIN
scripts/vr-edit/assets/create/dodecahedron.fbx
Normal file
BIN
scripts/vr-edit/assets/create/dodecahedron.fbx
Normal file
Binary file not shown.
BIN
scripts/vr-edit/assets/create/hexagon.fbx
Normal file
BIN
scripts/vr-edit/assets/create/hexagon.fbx
Normal file
Binary file not shown.
BIN
scripts/vr-edit/assets/create/octagon.fbx
Normal file
BIN
scripts/vr-edit/assets/create/octagon.fbx
Normal file
Binary file not shown.
|
@ -219,8 +219,34 @@ CreatePalette = function (side, leftInputs, rightInputs, uiCommandCallback) {
|
|||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
},
|
||||
// TODO: "Dodecahedron" shape type per edit.js.
|
||||
// TODO: "Hexagon" shape type per edit.js.
|
||||
{
|
||||
icon: {
|
||||
properties: {
|
||||
url: "../assets/create/dodecahedron.fbx"
|
||||
}
|
||||
},
|
||||
entity: {
|
||||
type: "Shape",
|
||||
shape: "Dodecahedron",
|
||||
dimensions: ENTITY_CREATION_DIMENSIONS,
|
||||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
},
|
||||
{
|
||||
icon: {
|
||||
properties: {
|
||||
url: "../assets/create/hexagon.fbx",
|
||||
dimensions: { x: 0.02078, y: 0.024, z: 0.024 },
|
||||
localRotation: Quat.fromVec3Degrees({ x: 90, y: 0, z: 0 })
|
||||
}
|
||||
},
|
||||
entity: {
|
||||
type: "Shape",
|
||||
shape: "Hexagon",
|
||||
dimensions: ENTITY_CREATION_DIMENSIONS,
|
||||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
},
|
||||
{
|
||||
icon: {
|
||||
properties: {
|
||||
|
@ -235,7 +261,21 @@ CreatePalette = function (side, leftInputs, rightInputs, uiCommandCallback) {
|
|||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
},
|
||||
// TODO: "Octagon" shape type per edit.js.
|
||||
{
|
||||
icon: {
|
||||
properties: {
|
||||
url: "../assets/create/octagon.fbx",
|
||||
dimensions: { x: 0.023805, y: 0.024, z: 0.024 },
|
||||
localRotation: Quat.fromVec3Degrees({ x: 90, y: 0, z: 0 })
|
||||
}
|
||||
},
|
||||
entity: {
|
||||
type: "Shape",
|
||||
shape: "Octagon",
|
||||
dimensions: ENTITY_CREATION_DIMENSIONS,
|
||||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
},
|
||||
{
|
||||
icon: {
|
||||
properties: {
|
||||
|
@ -263,8 +303,22 @@ CreatePalette = function (side, leftInputs, rightInputs, uiCommandCallback) {
|
|||
dimensions: ENTITY_CREATION_DIMENSIONS,
|
||||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
},
|
||||
{
|
||||
icon: {
|
||||
properties: {
|
||||
url: "../assets/create/circle.fbx",
|
||||
dimensions: { x: 0.024, y: 0.0005, z: 0.024 },
|
||||
localRotation: Quat.fromVec3Degrees({ x: 90, y: 0, z: 0 })
|
||||
}
|
||||
},
|
||||
entity: {
|
||||
type: "Shape",
|
||||
shape: "Circle",
|
||||
dimensions: ENTITY_CREATION_DIMENSIONS,
|
||||
color: ENTITY_CREATION_COLOR
|
||||
}
|
||||
}
|
||||
// TODO: "Circle" shape type per edit.js.
|
||||
],
|
||||
|
||||
isDisplaying = false,
|
||||
|
|
Loading…
Reference in a new issue