using UnityEngine; using CultMath.UnityBridge; // Cut 4 (docs/fire-control-cut.md): Hit, Splash, SendHit and SendSplash are deleted -- their last callers // (ConstantLaser, ConstantLightning, ConstantParticleWeapon, HitscanEffect) are gone too (see those // files and FireControl.Detonate, 12.4(b)'s renamed Splash). Nothing decides or applies damage through a Unity // collider any more (R8): // this component is now purely a physics surface for ship-on-ship collision impulse, not hit detection. public class HullCollider : MonoBehaviour { public Entity Entity { get; set; } private void OnCollisionEnter(Collision other) { Entity.Velocity += other.impulse.ToCultMath().xz / Time.deltaTime; } }