Loading...
Searching...
No Matches
AdventureCore.LockableCameraController Class Reference

Detailed Description

camera controller for players, provide input in OnInput(InputValue) or SetInput(Vector2)
rotates its own transform so it should be put on the pivot for a 3rd person style free look camera
can be locked to targets and smoothly transitionto another one with cinemachine virtual cameras, check the exact setup in the AdventureSouls demo

https://adventure.softleitner.com/manual

Inheritance diagram for AdventureCore.LockableCameraController:
AdventureCore.LockableCameraBase

Public Member Functions

override void SetInput (Vector2 value)
 
override void SetTarget (LockOnPoint target)
 
override void ResetCamera ()
 
override void ResetToReference ()
 
override void ResetToMain ()
 
- Public Member Functions inherited from AdventureCore.LockableCameraBase
virtual void OnInput (InputAction.CallbackContext context)
 
virtual void OnInput (InputValue value)
 
void SetInput (Vector2 value)
 
void SetTarget (LockOnPoint target)
 
void ResetCamera ()
 
void ResetToReference ()
 
void ResetToMain ()
 
virtual void SuspendCursorLock ()
 
virtual void ResumeCursorLock ()
 

Public Attributes

CinemachineVirtualCamera FreeCamera
 
CinemachineVirtualCamera LockedCameraA
 
CinemachineVirtualCamera LockedCameraB
 
- Public Attributes inherited from AdventureCore.LockableCameraBase
bool LockGameCursor
 

Protected Member Functions

override void Update ()
 

Additional Inherited Members

- Properties inherited from AdventureCore.LockableCameraBase
virtual bool IsSuspended [get, set]
 

Member Function Documentation

◆ Update()

override void AdventureCore.LockableCameraController.Update ( )
inlineprotectedvirtual

Reimplemented from AdventureCore.LockableCameraBase.