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); }
internal BumperMeshGenerator(BumperData data) { _data = data; }
public BumperHit(BumperData data, float height) : base(data.Center, data.Radius, height, height + data.HeightScale, ItemType.Bumper) { FireEvents = data.HitEvent; Threshold = data.Threshold; }