forked from mirror/DotRecast
Backport 20a86b5bae
This commit is contained in:
parent
0f28fa26ec
commit
724be6f3b2
|
@ -2523,7 +2523,7 @@ namespace DotRecast.Detour
|
||||||
// int va = a * 3;
|
// int va = a * 3;
|
||||||
// int vb = b * 3;
|
// int vb = b * 3;
|
||||||
float dx = verts[b].X - verts[a].X;
|
float dx = verts[b].X - verts[a].X;
|
||||||
float dz = verts[b].Z - verts[a].X;
|
float dz = verts[b].Z - verts[a].Z;
|
||||||
hit.hitNormal = RcVec3f.Normalize(new RcVec3f(dz, 0, -dx));
|
hit.hitNormal = RcVec3f.Normalize(new RcVec3f(dz, 0, -dx));
|
||||||
return DtStatus.DT_SUCCESS;
|
return DtStatus.DT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue