|
Post by athellboy on Jul 16, 2018 16:42:15 GMT
Hey there, How can I limit camera rotation which can't see front face of character. Seems X limitation of camera is in world space. Actually I want to limit camera rotation in head tracking range.
|
|
|
Post by Invector on Jul 16, 2018 16:51:36 GMT
That's currently not possible, what you can do is to set the character to StrafeOnly and modify the RotateWithCamera method to rotate the camera with the player
|
|
|
Post by athellboy on Jul 16, 2018 17:07:54 GMT
Any advice for modifying the scripts by myself ?
|
|
|
Post by Invector on Jul 16, 2018 17:49:18 GMT
Shooter Template: Open vShooterMeleeInput script, find the method RotateWithCamera and comment this line "else if (cc.input != Vector2.zero || (isAiming || aimTimming > 0))"
Melee Template: The vMeleeCombatInput doesn't override the RotateWithCamera method, so go to the original in the vThirdPersonInput and comment line: "else if (cc.input != Vector2.zero)"
|
|
|
Post by athellboy on Jul 16, 2018 17:54:41 GMT
I don't see any changes
|
|
|
Post by Invector on Jul 16, 2018 18:00:39 GMT
You need to change the LocomotionType to "Only Strafe" Line commented: Original:
|
|