Example #1
0
    public void BreakShip(bool detach = false)
    {
        // Turn off ship control & stability
        shipController.shipRB.angularDrag = 0f;

        // Disable space particles
        shipController.spaceParticles.Stop();
        shipController.spaceParticles.Clear();

        // Detatch physical modules
        shipController.MainPower(false);
        shipController.DetachAllPhysical();

        flightHelp.RefreshComponents();

        if (detach)
        {
            StartCoroutine("DetachCam");
        }
    }