Visual Mode: changed "Apply Camera Rotation To Things" action to apply more sensible rotation values to things

This commit is contained in:
biwa 2020-09-28 16:18:36 +02:00
parent 8e043aa875
commit e79a15807b

View file

@ -4336,8 +4336,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
foreach (Thing t in things)
{
t.Rotate(General.Map.VisualCamera.AngleXY);
t.SetPitch((int)Angle2D.RadToDeg(-General.Map.VisualCamera.AngleZ));
t.Rotate(General.Map.VisualCamera.AngleXY - Angle2D.PI);
t.SetPitch((int)Angle2D.RadToDeg(General.Map.VisualCamera.AngleZ - Angle2D.PI));
}
}