🎯 그렇다면 게임에서 어떻게 활용할 수 있을까?
// C# // 총 걸린 시간은 2t // 2*V*sinΘ/g float timeTotal = 2 * shotVelocity * Mathf.Sin(shotAngle * Mathf.Deg2Rad) / 9.81f; // 최고 높이 // (V*sinΘ)²/ 2g float mostHeight = Mathf.Pow(shotVelocity * Mathf.Sin(shotAngle * Mathf.Deg2Rad), 2) / (2*9.81f); // 총 날아간 거리 // 2*V²sinΘ*cosΘ / g => 2sinΘ*cosΘ == sin2Θ // V²/ g*sin2Θ float meterTotla = Mathf.Pow(shotVelocity,2) / 9.81f * Mathf.Sin(2 * shotAngle * Mathf.Deg2Rad);