internal BumperMeshGenerator(BumperData data)
 {
     _data             = data;
     _scaledBaseMesh   = BaseMesh.Clone().MakeScale(_data.Radius, _data.Radius, _data.HeightScale);
     _scaledCapMesh    = CapMesh.Clone().MakeScale(_data.Radius * 2, _data.Radius * 2, _data.HeightScale);
     _scaledRingMesh   = RingMesh.Clone().MakeScale(_data.Radius, _data.Radius, _data.HeightScale);
     _scaledSocketMesh = SocketMesh.Clone().MakeScale(_data.Radius, _data.Radius, _data.HeightScale);
 }
예제 #2
0
 internal BumperMeshGenerator(BumperData data)
 {
     _data = data;
 }
예제 #3
0
 public BumperHit(BumperData data, float height) : base(data.Center, data.Radius, height, height + data.HeightScale, ItemType.Bumper)
 {
     FireEvents = data.HitEvent;
     Threshold  = data.Threshold;
 }