You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of "set_ortho_scale" and "get_ortho_scale", it should probably just be "set_zoom" and "get_zoom".
Would then need to flip the scale/zoom value. 1/x.
Stop trying to have a zoom function that works for ortho and perspective cameras? Let people using perspective cameras change the Z position themselves?
Or make it work the same way for perspective cameras - figure out the necessary Z-movement to multiply the rendered area by the specified zoom value (at the camera's view distance).
(Or change FOV?...)
See about allowing users to animate zoom.
The camera's zoom must be a property that gets updated with the module every frame.
Then users could animate this property directly - but it's not the most convenient. (have to get the right URL)
Have helper functions/messages? (animate and cancel_animations)
The text was updated successfully, but these errors were encountered:
Refer to this forum post (Space Shooter dev diary)
animate
andcancel_animations
)The text was updated successfully, but these errors were encountered: