2025-05-13 03:19:28 +03:00
|
|
|
using UnityEngine;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
|
|
|
|
|
public static class CarMath {
|
|
|
|
|
|
|
|
|
|
public static float Drag(float environmentDensity, float velocity, float dragCoeff, float area){
|
|
|
|
|
return 0.5f * environmentDensity * (velocity * velocity) * dragCoeff * area;
|
|
|
|
|
}
|
|
|
|
|
}
|