Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]Orthographic Camera Utility, New Command #1016

Draft
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

breadnone
Copy link
Contributor

@breadnone breadnone commented Jul 13, 2021

Description

Orthographic camera utility command.

These are the features:

  • Lock To Object Camera follow
    Basically what it does is for the camera to follow gameObject. Useful for platformer or adventure type of games

  • Drag
    As the name implies, it drags an orthographic camera via mouse/touch input.

  • Scroll Pinch Zoom
    Supports zooming in/out an orthographic camera via mouse scroll or touches (pinch, to zoom in/out)

- Camera Shake
Slightly different behavior that the existing one. It looks much more natural.
Removed, Fungus has this already

  • Rotate (x, y, z)
    Single rotation for each axes as well as full rotation

What is the current behavior?

We don't have this type of command yet.

What is the new behavior?

Users can have freedoms to make their game without having to add custom scripts attached to a camera. Should make their game more maintainable especially if vscripting is their only goto.

Also, it urges people to make other type of games because in my humble opinion, Fungus is more than just a dialogue system in Unity.

Important Notes

  • My change require modifcations or additions to documentation

Note:

  1. One camera can have multiple instances tied to this command except CameraFollow and Drag. These two can't and won't be combined together for obvious reason!

Other information

To do:

  • Add custom editor.
  • Examples.

This is pretty much WIP. Inputs and suggestions are welcome. Thanks!

Removed camera shake
Fixed wrong reference to a local camera
Removed unrelated cameraManager
@breadnone breadnone force-pushed the Orthographic-Camera-Utility branch from 1e5f065 to 3ad1df5 Compare July 13, 2021 11:50
@stevehalliwell stevehalliwell marked this pull request as draft August 21, 2021 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant