mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
enable shapeType=ellipsoid and expose zone shapeType to UI
This commit is contained in:
parent
a656ea723e
commit
a642af23b7
5 changed files with 23 additions and 3 deletions
|
@ -117,6 +117,7 @@ void buildStringToShapeTypeLookup() {
|
|||
addShapeType(SHAPE_TYPE_SIMPLE_HULL);
|
||||
addShapeType(SHAPE_TYPE_SIMPLE_COMPOUND);
|
||||
addShapeType(SHAPE_TYPE_STATIC_MESH);
|
||||
addShapeType(SHAPE_TYPE_ELLIPSOID);
|
||||
}
|
||||
|
||||
QHash<QString, MaterialMappingMode> stringToMaterialMappingModeLookup;
|
||||
|
|
|
@ -278,7 +278,6 @@ void ZoneEntityItem::debugDump() const {
|
|||
}
|
||||
|
||||
void ZoneEntityItem::setShapeType(ShapeType type) {
|
||||
//ShapeType typeArgument = type;
|
||||
ShapeType oldShapeType = _shapeType;
|
||||
switch(type) {
|
||||
case SHAPE_TYPE_NONE:
|
||||
|
|
|
@ -58,7 +58,8 @@ const char* shapeTypeNames[] = {
|
|||
"compound",
|
||||
"simple-hull",
|
||||
"simple-compound",
|
||||
"static-mesh"
|
||||
"static-mesh",
|
||||
"ellipsoid"
|
||||
};
|
||||
|
||||
static const size_t SHAPETYPE_NAME_COUNT = (sizeof(shapeTypeNames) / sizeof((shapeTypeNames)[0]));
|
||||
|
|
|
@ -372,6 +372,7 @@ const DEFAULT_ENTITY_PROPERTIES = {
|
|||
blue: 179
|
||||
},
|
||||
},
|
||||
shapeType: "box",
|
||||
bloomMode: "inherit"
|
||||
},
|
||||
Model: {
|
||||
|
|
|
@ -1288,6 +1288,24 @@ const GROUPS = [
|
|||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "zone_shape",
|
||||
label: "ZONE SHAPE",
|
||||
properties: [
|
||||
{
|
||||
label: "Shape Type",
|
||||
type: "dropdown",
|
||||
options: { "box": "Box", "sphere": "Sphere", "ellipsoid": "Ellipsoid",
|
||||
"cylinder-y": "Cylinder", "compound": "Use Compound Shape URL" },
|
||||
propertyID: "shapeType",
|
||||
},
|
||||
{
|
||||
label: "Compound Shape URL",
|
||||
type: "string",
|
||||
propertyID: "compoundShapeURL",
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "physics",
|
||||
label: "PHYSICS",
|
||||
|
@ -1384,7 +1402,7 @@ const GROUPS_PER_TYPE = {
|
|||
None: [ 'base', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
Shape: [ 'base', 'shape', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
Text: [ 'base', 'text', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
Zone: [ 'base', 'zone', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
Zone: [ 'base', 'zone', 'spatial', 'behavior', 'zone_shape', 'physics' ],
|
||||
Model: [ 'base', 'model', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
Image: [ 'base', 'image', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
Web: [ 'base', 'web', 'spatial', 'behavior', 'collision', 'physics' ],
|
||||
|
|
Loading…
Reference in a new issue