Refactor engine to support double-precision vectors

This commit is contained in:
Wojtek Figat
2022-06-13 00:40:32 +02:00
parent f82e370392
commit a881c90b2e
744 changed files with 19062 additions and 12467 deletions

View File

@@ -75,7 +75,7 @@ void DistanceJoint::OnDebugDrawSelected()
const Vector3 source = GetPosition();
const Vector3 target = GetTargetPosition();
Vector3 dir = target - source;
const float len = dir.Length();
const float len = (float)dir.Length();
dir *= 1.0f / len;
Vector3 start = source, end = target;
float max = 0, min = 0;