mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Fixed, MODELDEF parser: looks like INHERITACTORPITCH and INHERITACTORROLL flags affect only pitch/roll set in the map editor, not "PitchOffset" and "RollOffset" MODELDEF properties...
This commit is contained in:
parent
aed233d249
commit
25ca6f4e9b
1 changed files with 1 additions and 3 deletions
|
@ -412,9 +412,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
|
|||
mde.InheritActorPitch = inheritactorpitch;
|
||||
mde.InheritActorRoll = inheritactorroll;
|
||||
Matrix moffset = Matrix.Translation(offset.Y, -offset.X, offset.Z); // Things are complicated in GZDoom...
|
||||
Matrix mrotation = Matrix.RotationY(inheritactorroll ? -Angle2D.DegToRad(rollOffset) : 0)
|
||||
* Matrix.RotationX(inheritactorpitch ? -Angle2D.DegToRad(pitchOffset) : 0)
|
||||
* Matrix.RotationZ(Angle2D.DegToRad(angleOffset));
|
||||
Matrix mrotation = Matrix.RotationY(-Angle2D.DegToRad(rollOffset)) * Matrix.RotationX(-Angle2D.DegToRad(pitchOffset)) * Matrix.RotationZ(Angle2D.DegToRad(angleOffset));
|
||||
mde.SetTransform(mrotation, moffset, scale);
|
||||
|
||||
for(int i = 0; i < modelNames.Length; i++)
|
||||
|
|
Loading…
Reference in a new issue