forked from bit/DotRecastNetSim
reomve vcopy
This commit is contained in:
parent
2945a09b73
commit
ba63c95806
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue