Update PhysicsClientC_API.cpp

use B3_PI definition
This commit is contained in:
erwincoumans
2019-07-30 17:43:24 -07:00
committed by GitHub
parent d0880a78d5
commit 1feb186204

View File

@@ -4142,7 +4142,7 @@ B3_SHARED_API void b3ComputeProjectionMatrix(float left, float right, float bott
B3_SHARED_API void b3ComputeProjectionMatrixFOV(float fov, float aspect, float nearVal, float farVal, float projectionMatrix[16])
{
float yScale = 1.0 / tan((3.141592538 / 180.0) * fov / 2);
float yScale = 1.0 / tan((B3_PI / 180.0) * fov / 2);
float xScale = yScale / aspect;
projectionMatrix[0 * 4 + 0] = xScale;