I found cinemachine today on youtube, and i’m really enjoying the freelook cam.
I desire 1 thing from this camera: DON’T orbit unless i’m pressing MB3.
Basically, if I hold mousebutton3 I want the freelook to “update”, and if i’m not pressing THAT button, the freelook should remain where it was placed.
it seems that the brain needs to have the update method set to “ManualUpdate” to accomplish this…
However, when looking up the documentation i’m confused how to “externally call this function”.
So here’s my try, maybe someone can help me!
void Update()
{
if (cameraHandler.action.triggered)
{
freeLookCamera.ManualUpdate();
}
}
UPDATE
I feel silly LOL
public CinemachineBrain updateBrain;
void Update()
{
if (cameraHandler.action.triggered)
{
updateBrain.ManualUpdate();
}
}
But now, how do i make it while i’m holding the button? That’s a different topic i suppose.