Loading...
Searching...
No Matches
AdventureCore.LockableCameraFreeLook 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.LockableCameraFreeLook:
AdventureCore.LockableCameraBase

Public Member Functions

override void SetInput (Vector2 value)
 
override void SetTarget (LockOnPoint target)
 
override void ResetCamera ()
 
override void ResetToReference ()
 
override void ResetToMain ()
 
void OnToggleFirstPerson (InputAction.CallbackContext context)
 
void ToggleFirstPerson ()
 
void EnableFirstPerson ()
 
void DisableFirstPerson ()
 
- 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 ()
 

Public Attributes

CinemachineFreeLook FreeLook
 
CinemachineTargetGroup TargetGroup
 
Transform TargetGroupMember
 
float LockSpeed = 5f
 
Transform Reference
 
CinemachineVirtualCamera FirstPersonCamera
 
Renderer[] FirstPersonHideRenderers
 

Properties

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