mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
UDBScript: fixed a bug in Vector3D's crossProduct method that resulted in wrong calculations
This commit is contained in:
parent
7d11b0dd27
commit
f86c52c021
1 changed files with 5 additions and 1 deletions
|
@ -452,7 +452,11 @@ namespace CodeImp.DoomBuilder.UDBScript.Wrapper
|
||||||
Vector3D a1 = (Vector3D)BuilderPlug.Me.GetVectorFromObject(a, true);
|
Vector3D a1 = (Vector3D)BuilderPlug.Me.GetVectorFromObject(a, true);
|
||||||
Vector3D b1 = (Vector3D)BuilderPlug.Me.GetVectorFromObject(b, true);
|
Vector3D b1 = (Vector3D)BuilderPlug.Me.GetVectorFromObject(b, true);
|
||||||
|
|
||||||
return new Vector3DWrapper(a1.y * b1.x - a1.z * b1.y, a1.z * b1.x - a1.x * b1.z, a1.x * b1.y - a1.y * b1.x);
|
return new Vector3DWrapper(
|
||||||
|
a1.y * b1.z - a1.z * b1.y,
|
||||||
|
a1.z * b1.x - a1.x * b1.z,
|
||||||
|
a1.x * b1.y - a1.y * b1.x
|
||||||
|
);
|
||||||
}
|
}
|
||||||
catch (CantConvertToVectorException e)
|
catch (CantConvertToVectorException e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue