Skip to content

Commit

Permalink
Show Areas for LowGravityAreas
Browse files Browse the repository at this point in the history
  • Loading branch information
savage13 committed Aug 11, 2023
1 parent dab9324 commit a2d1ac9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/AppMapDetailsObj.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function numOrArrayToArray(x: number | [number, number, number] | undefined): [n

function isAreaObject(obj: ObjectMinData) {
const areaObjectNames = ["Area", "BoxWater", "SpotBgmTag", "PointWindSetTag", "AreaCulling", "AreaCulling_InnerHide",
"AreaCulling_InnerOn", "AreaCulling_OuterNPCMementary", "FarModelCullingArea", 'LocationArea'];
"AreaCulling_InnerOn", "AreaCulling_OuterNPCMementary", "FarModelCullingArea", 'LocationArea',
'LowGravityAreaBox', 'LowGravityAreaCylinder'
];
return areaObjectNames.includes(obj.name) || obj.name.startsWith('AirWall');
}

Expand Down Expand Up @@ -331,6 +333,10 @@ export default class AppMapDetailsObj extends AppMapDetailsBase<MapMarkerObj | M
const [x, y, z] = obj.data.Translate;
const dyn = obj.data.Dynamic;
let shapeNum = (dyn && dyn.RigidBodyShapeType !== undefined) ? dyn.RigidBodyShapeType : 2;
if (obj.name == 'LowGravityAreaCylinder')
shapeNum = 3;
if (obj.name == 'LowGravityAreaBox')
shapeNum = 2;
const shape = (shapeNum <= 3) ? shapes[shapeNum] : shapes[2];
const scale = numOrArrayToArray(obj.data.Scale);
const rotate = numOrArrayToArray(obj.data.Rotate);
Expand Down

0 comments on commit a2d1ac9

Please sign in to comment.