Updated Vector math to new naming
This commit is contained in:
parent
3655c6e466
commit
a766e2c480
4 changed files with 47 additions and 47 deletions
|
@ -990,8 +990,8 @@ Ray GetMouseRay(Vector2 mousePosition, Camera camera)
|
|||
Vector3 farPoint = rlUnproject((Vector3){ deviceCoords.x, deviceCoords.y, 1.0f }, matProj, matView);
|
||||
|
||||
// Calculate normalized direction vector
|
||||
Vector3 direction = VectorSubtract(farPoint, nearPoint);
|
||||
VectorNormalize(&direction);
|
||||
Vector3 direction = Vector3Subtract(farPoint, nearPoint);
|
||||
Vector3Normalize(&direction);
|
||||
|
||||
// Apply calculated vectors to ray
|
||||
ray.position = camera.position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue