hello
I use First Person Controls of standard assets (mobile) for android and ios.
But I have one problem:
I want you to slide your finger across the screen (for example) to the right
capsule turned to the right and that’s it.
But capsule rotates until my finger still on the screen but it is wrong.
I want to turn around Only When not stirring a finger.
Put simply: I want the touchpad to work as well as in games (NOVA, Modern Combat, shadwgun …)
Can you please advise how to do this?
I think the solution is something like this:
If I change this:
if ( rotateTouchPad )
camRotation = rotateTouchPad.position;
on:
if ( rotateTouchPad )
camRotation = rotateTouchPad.deltaPosition;
Unfortunately it does not work error:
Assets/Standard Assets (Mobile)/Scripts/FirstPersonControl.js(136,54): BCE0019: ‘deltaPosition’ is not a member of ‘Joystick’.
solved.