Allow Rotation Input not working?

EVG

Member
Hello, I set the Allow Rotation Input value to false for the ability, but the character can still rotate, is this a bug or do I misunderstand the meaning of this setting? Allow Positional Input works fine.
UFPS 3.2.1 + New Input System. Unity 6000.0.41f1.
 
@EVG Hi, I took a quick look and what really matters here seems to be the relation between the current view type and how it affects the character rotation, that is if it affects it at all. If you try activating an ability that sets Allow Rotation Input to false while using the Third Person RPG view type for example, you'll see that you won't be able to rotate the character nor the camera, but you will be able to with the Adventure type. First person perspective related view and control types must be handling rotation in a way that make this parameter ineffective.

That's all I can say for now, hope this can at least give you a first direction.
 
@EVG Hi, I took a quick look and what really matters here seems to be the relation between the current view type and how it affects the character rotation, that is if it affects it at all. If you try activating an ability that sets Allow Rotation Input to false while using the Third Person RPG view type for example, you'll see that you won't be able to rotate the character nor the camera, but you will be able to with the Adventure type. First person perspective related view and control types must be handling rotation in a way that make this parameter ineffective.

That's all I can say for now, hope this can at least give you a first direction.
I thought it should work for all types of views. But thanks for the clarification!
 
@Cheo is right - this property is for the character rotation, but the view types are independent. To completely stop the movement you'll need to use the OnEnableGameplayInput. Maybe I should add an option which works with the view type as well?
 
Yes I do think adding a property to prevent the camera from being rotated would be a justified addition, there are some cases in FPS games where you specifically need to disable the rotation. Recently I've been playing R.E.P.O with friends and in that game there is one object that while being held by a player causes him to keep spinning at a specific speed, taking rotation control away from the player but not position control. I personally do not need this at the moment but it would be great if this could be added in a future update.
 
Back
Top