hunterdyar / daily-golf-project

Unity example project demonstrating modular project architecture
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

Write better camera follow setup for the cinemachine cameras. #31

Closed hunterdyar closed 12 months ago

hunterdyar commented 12 months ago

Bleh!

I keep alternating between "i'll just do it myself" and "cinemachine should do everything". I don't know what features to implement with what sort of system, and each effort I make appears to be annoying. I might burn it down and do it myself, then add noise and other fun features with cinemachine.

Aim camera should behave predictably, with club-controlled settings for pullback distance, height, and so on. then lerp up into the flight camera when you hit, which follows the ball slowly and zooms in; ie: it starts facing same dir as aim camera, but further up.

When the ball gets close to a hole(clearshot? trigger?), we should switch to a closer cinemachine details camera.

The user can also manually switch to and back from a manual top-down 2D pan and zoom (height adjust) camera, within limits.

hunterdyar commented 12 months ago

Closing for now, although the camera needs a lot of tweaking. https://github.com/hunterdyar/daily-golf-project/commit/f2233a6143e7987737c7696963408cf312334881

Scrapped the aim camera, and went with an orbital. It's much better. The wonky camera flying around was because the orbital was in object space, not world space. It was in object space with world up, so I don't notice. I thought it was lookahead, not object rotation being damped. With that fixed.