reomve vcopy

This commit is contained in:
ikpil 2023-05-20 12:22:41 +09:00
parent 2945a09b73
commit ba63c95806
2 changed files with 3 additions and 8 deletions

View File

@ -128,13 +128,6 @@ namespace DotRecast.Core
@out.z = c;
}
public static void VCopy(float[] @out, Vector3f @in)
{
@out[0] = @in.x;
@out[1] = @in.y;
@out[2] = @in.z;
}
public static void VCopy(ref Vector3f @out, float[] @in)
{
@out.x = @in[0];

View File

@ -415,7 +415,9 @@ namespace DotRecast.Detour.Crowd
// desired direction
float[] ddir = new float[6];
VCopy(ddir, dvel);
ddir[0] = dvel.x;
ddir[1] = dvel.y;
ddir[2] = dvel.z;
DtNormalize2D(ddir);
Vector3f rotated = DtRotate2D(ddir, da * 0.5f); // rotated by da/2
ddir[3] = rotated.x;