Beispiel #1
0
    void MagneticPulse(Magnet magnet)
    {
        Vector3 pulse = magnetism.CalculateGilbertForce(this, magnet);

        rb.AddForce(pulse);
    }
    private void PullMagnet(Magnet otherMagnet)
    {
        Vector3 MagnetismForce = magnetism.CalculateGilbertForce(this, otherMagnet);

        rb.AddForce(MagnetismForce);
    }