Jump to content

PlayerActor setMinThetaAngle / setMaxThetaAngle


photo

Recommended Posts

PlayerActor has setMinThetaAngle / setMaxThetaAngle functional to control min/max camera theta angle (pitch). It works while we not use Unigine::Input::Control to override standard player's controls definition.

 

I try change in demos/character example

<min_angle>-30</min_angle>

<max_angle>50</max_angle>

and max parameter

<action name="turn_down">

<input device="Mouse" state="1" max="-50"/>

<input device="XBOX 360 For Windows (Controller)" state="5"/>

</action>

<action name="turn_up">

<input device="Mouse" state="1" max="50"/>

<input device="XBOX 360 For Windows (Controller)" state="8"/>

</action>

This have no effect - camera are moving from -90 to 90 degrees.

How to limit this angles?

Link to comment

PlayerActor has setMinThetaAngle / setMaxThetaAngle functional to control min/max camera theta angle (pitch). It works while we not use Unigine::Input::Control to override standard player's controls definition.

 

I try change in demos/character example

 

and max parameter

 

This have no effect - camera are moving from -90 to 90 degrees.

How to limit this angles?

 

Did you try to change min_angle and max_angle in agent.camera config file?

Link to comment
×
×
  • Create New...