โš ๏ธCan't Look Around

Reason

This issue is often related to the issues with receiving or processing player input and applying it to the character rotation. As there might be multiple possible sources of the problem, this page will provide solutios to the most common cases.

Solution 1

Make sure to add these two Vector4 properties to the Input Config: MouseInput and MouseDeltaInput. These properties are used by the Look Layer, it is also crucial to check if they are properly specified in the animator layer.

Solution 2

It is possible that the player input is properly processed by the system, but scaled down by the sensitivity value. To fix this make sure to add a float input property to the config:

Solution 3

The last solution supposes that the player input is not processed at all by the player controller. This is likely to happen if the framework is used with custom controllers, and not with the demo scripts.

The input is usually updated in the controller component:

private UserInputController _userInput;

private void Update()
{
    _userInput.SetValue(FPSANames.MouseDeltaInput, new Vector4(deltaMouseX, deltaMouseY));
    _userInput.SetValue(FPSANames.MouseInput, new Vector4(_playerInput.x, _playerInput.y));
}

Last updated