Allow voxel-based aircraft to pitch and roll.

This commit is contained in:
Paul Chote
2020-06-21 10:33:21 +01:00
committed by tovl
parent 43717a89b5
commit 6dcde3af72
5 changed files with 71 additions and 12 deletions

View File

@@ -36,6 +36,16 @@ namespace OpenRA
public static bool operator !=(WRot me, WRot other) { return !(me == other); }
public WRot WithRoll(WAngle roll)
{
return new WRot(roll, Pitch, Yaw);
}
public WRot WithPitch(WAngle pitch)
{
return new WRot(Roll, pitch, Yaw);
}
public WRot WithYaw(WAngle yaw)
{
return new WRot(Roll, Pitch, yaw);