Update models_basic_voxel.c
This commit is contained in:
parent
04b66f1965
commit
9bd3d84f3d
|
|
@ -77,7 +77,7 @@ int main(void)
|
|||
{
|
||||
// Cast a ray from the screen center (where crosshair would be)
|
||||
Vector2 screenCenter = { GetScreenWidth()/2.0f, GetScreenHeight()/2.0f };
|
||||
Ray ray = GetMouseRay(screenCenter, camera);
|
||||
Ray ray = GetScreenToWorldRay(screenCenter, camera);
|
||||
|
||||
// Check ray collision with all voxels
|
||||
float closestDistance = 99999.0f;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user