Class BuildingDestructionBuilder
- Namespace
- VoxelPlayground.Level
- Assembly
- GamePlay.dll
public class BuildingDestructionBuilder : MonoBehaviour
- Inheritance
-
object
BuildingDestructionBuilder
- Extension Methods
-
Fields
BuildingMassDensity
[FoldoutGroup("结构强度", 0)]
[InfoBox("模块质量密度", InfoMessageType.Info, null)]
public float BuildingMassDensity
Field Value
- float
Buildings
public List<LevelsOfABuilding> Buildings
Field Value
- List<LevelsOfABuilding>
CollapseCheckInternal
[FoldoutGroup("荷载断裂", 0)]
[InfoBox("检查荷载倒塌的间隔,单位秒", InfoMessageType.Info, null)]
public float CollapseCheckInternal
Field Value
- float
HeightGroupThreshold
[FoldoutGroup("荷载断裂", 0)]
public float HeightGroupThreshold
Field Value
- float
JointData
[InfoBox("配置方法文档点击组件 ↑ 右上角 问号?", InfoMessageType.Info, null)]
public JointInfoData JointData
Field Value
- JointInfoData
ModuleBreakLoadRatio
[FoldoutGroup("荷载断裂", 0)]
[InfoBox("模块断裂极限强度:每层荷载/自重", InfoMessageType.Info, null)]
public float ModuleBreakLoadRatio
Field Value
- float
OnInitializeCompleted
public Action OnInitializeCompleted
Field Value
- Action
Methods
Awake()
CalculateTotalMass()
public void CalculateTotalMass()
DebugUpdatePath()
public void DebugUpdatePath()
public static void FindContactCenter(VoxelVolume mc1, VoxelVolume mc2, out bool isConnected, out Vector3 contactCenter)
Parameters
mc1 VoxelVolume
mc2 VoxelVolume
isConnected bool
contactCenter Vector3
FindNeighborMarchingCube(VoxelVolume, VoxelVolume[])
public static VoxelVolume[] FindNeighborMarchingCube(VoxelVolume mc, VoxelVolume[] allMarchingCubes)
Parameters
mc VoxelVolume
allMarchingCubes VoxelVolume[]
Returns
- VoxelVolume[]
GroupObjectsByHeight<T>(T[], List<float>, float)
public static List<List<T>> GroupObjectsByHeight<T>(T[] objects, List<float> heights, float threshold)
Parameters
objects T[]
heights List<float>
threshold float
Returns
- List<List<T>>
Type Parameters
T
ResetBuilding()
public void ResetBuilding()
Start()