wolfenrain / sashimi

Sashimi, a sprite stacking framework build on top of Flame.
MIT License
25 stars 2 forks source link

feat: support pitch rotation to the world #15

Open wolfenrain opened 1 year ago

wolfenrain commented 1 year ago

Description

Right now Sashimi supports rotating around the z-axis but it should also be possible to pitch the world perspective up and down to allow for a more free-moving camera.

Requirements

Additional Context

Fauxton3D supports pitching the world, the math is probably defined somewhere in there so it could be a good starting point for figuring this out.

aytunch commented 1 year ago

Fauxton3D's code and folder structure looks very strange to me but maybe the pitch calculations for camera is here: https://github.com/Gizmo199/fauxton3D/blob/172bbc691c54c174f10a9abb04f8f4fa59db57e9/Fauxton%203D/scripts/lib_CameraScripts/lib_CameraScripts.gml#L133

maks commented 1 year ago

@wolfenrain it would be fantastic to have support for pitching the world. I see you have PR #16 open for this, looking forward to being able to try it out! 👍🏻