Browse Source

REVIEWED: Direction must be normalized #4131

Ray 1 year ago
parent
commit
df4ff4e78b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/raylib.h

+ 1 - 1
src/raylib.h

@@ -421,7 +421,7 @@ typedef struct ModelAnimation {
 // Ray, ray for raycasting
 typedef struct Ray {
     Vector3 position;       // Ray position (origin)
-    Vector3 direction;      // Ray direction
+    Vector3 direction;      // Ray direction (normalized)
 } Ray;
 
 // RayCollision, ray hit information