float[] -> Vector3f

This commit is contained in:
ikpil 2023-04-22 12:39:40 +09:00
parent b80b784e31
commit 8214842151
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ namespace DotRecast.Recast
} }
// check intersection with rays starting in rectangle vertices // check intersection with rays starting in rectangle vertices
float[] point = new float[] { 0, rectangle[1], 0 }; var point = Vector3f.Of(0, rectangle[1], 0);
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
point[0] = ((i & 1) == 0) ? rectangle[0] : rectangle[2]; point[0] = ((i & 1) == 0) ? rectangle[0] : rectangle[2];