Sprite lean/angled roll with geometric consistency in multiplayer and mirrors. An ANGLEDROLL flag ties actor's sprite-rolling axis to physical direction instead of viewpoint. Y-Billboarding occurs about a rolled axis (unlike flatsprites which don't billboard). This makes roll consistent when viewed from all angles and in reflections. Useful for sprite-based laser beams and lean mechanics with third-person cameras and/or multiplayer mods.

This commit is contained in:
Dileep V. Reddy 2025-07-17 17:34:16 -06:00 committed by Ricardo Luís Vaz Silva
commit 19291c5e5c
7 changed files with 73 additions and 3 deletions

View file

@ -399,6 +399,7 @@ void AActor::Serialize(FSerializer &arc)
A("devthreshold", DefThreshold)
A("spriteangle", SpriteAngle)
A("spriterotation", SpriteRotation)
A("angledrolloffset", AngledRollOffset)
("alternative", alternative)
A("thrubits", ThruBits)
A("cameraheight", CameraHeight)