Portal awareness adjustments to various vector operations.
Got rid of the deprecated Matrix4.GetAxes method. Next step is to get rid of more stuff by migrating to libeye. Mirrored Translocator model so it shows the actually detailed side. At some point in UT's development it got flipped around for some reason. Weapon code cleanup (most noticeable on states). Backported scope shader from Doomreal. Added optional "dummied out" Sniper zoom sounds from a dubious source.
This commit is contained in:
parent
cd72ee9688
commit
fb96c7523e
27 changed files with 445 additions and 777 deletions
|
|
@ -105,20 +105,4 @@ Class dt_Matrix4
|
|||
r.set(2,3,-1);
|
||||
return r;
|
||||
}
|
||||
|
||||
// [deprecated] UE-like axes from rotation
|
||||
// proper implementation moved to CoordUtil
|
||||
static Vector3, Vector3, Vector3 getaxes( double pitch, double yaw, double roll )
|
||||
{
|
||||
Vector3 x = (1,0,0), y = (0,-1,0), z = (0,0,1); // y inverted for left-handed result
|
||||
dt_Matrix4 mRoll = dt_Matrix4.rotate((1,0,0),roll);
|
||||
dt_Matrix4 mPitch = dt_Matrix4.rotate((0,1,0),pitch);
|
||||
dt_Matrix4 mYaw = dt_Matrix4.rotate((0,0,1),yaw);
|
||||
dt_Matrix4 mRot = mRoll.mul(mYaw);
|
||||
mRot = mRot.mul(mPitch);
|
||||
x = mRot.vmat(x);
|
||||
y = mRot.vmat(y);
|
||||
z = mRot.vmat(z);
|
||||
return x, y, z;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue