Hi - I’m controlling a characters animator movements based on an external sensor value (‘energy’):
functionFixedUpdate ()
{animator.SetFloat(“Run”, sprint);}
functionRuning () {
if (Timer.energy >= 400f)
{sprint = 0.2;}
else
{sprint = 0.0;}
Seeing as I have disabled the regular code “v = Input.GetAxis(“Vertical”);”
The camera follow script I had been using no longer works:
targetPosition = follow.position + Vector3.up * distanceUp + follow.up * distanceAway;
transform.position = Vector3.Lerp(transform.position, targetPosition, Time.deltaTime * smooth);
Hi - the camera can be placed at any location in the scene and it follows the specified target by panning but it doesn’t move or physically follow…ie it just follows by panning like a cctv camera. I’ve attached the script that I was using…but now no longer works.