Beispiel #1
0
    public void Shoot(Vector3 velocity, Vector3 rotationVelocity)
    {
        this.vel0    = velocity;
        this.rotVel0 = rotationVelocity;

        time   = 0;
        vel    = vel0;
        rotVel = rotVel0;
        acc    = gravity;

        if (onFootPrint)
        {
            footPrint.Draw(pos);
        }
    }