Rotation of objects away from walls during map load
Now that we have 3D models representing the game
objects it often occurs where the models are facing the
wrong way, facing into a wall.
What I'm suggesting is:
It would be nice if during map loading Doomsday would
check to see if a THING's angle has been changed from
the default 0. If not it would then do a quick eight
direction check to see if there is a wall within X
distance. If there is a wall it then modifiys the angle of
the THING away from the nearest wall.
Obviously the above should not be used for monsters,
player starts and teleport exits.
Related to BUG 818516?
Labels: Game Objects
#1 Updated by skyjake about 15 years ago
Logged In: YES
I seem to recall seeing some regular THINGs with a non-zero
angle. (Maybe only in Heretic and Hexen...) Those would not
be affected by your algorithm.
There is a real problem with the thing angles, though. The
game DLLs already do some thing-specific angle modifications
(like Heretic door statues), but it's not trivial to come up with a
rule that would work in all cases.
#5 Updated by skyjake about 13 years ago
Logged In: YES
What if we just turned all mobjs away from walls, if they are within a certain N*radius distance of a wall? Of course those special mobjs you mention would have to be skipped (player starts, etc.), but it might work just fine for 95% of the cases. It would also take care of the wall torches that currently are handled as a special case (might even reuse the same logic).
There could be a rule to select the longest wall that is within range, and take the direction from there.