|
Post by mightofficiel on Feb 19, 2019 19:32:07 GMT
OK Hello everyone i'm trying to play around with the camera so when i press"tab key" my camera swap from default to strafe right , I want the camera turn where the character is looking at here an example : streamable.com/on9nti don't know maybe this could work if (Input.GetKeyDown(KeyCode.TAB)) { rotation = player.eulerAngles.y; } if someone can help me with this
|
|
|
Post by Invector on Feb 20, 2019 17:40:41 GMT
If you go to the RotateWithCamera method, we have a else if there that will only call the rotate method if you have input different from zero, which means the camera will only rotate when the character is moving.
You can comment that line out to always rotate with the character when strafing
//else if (cc.input != Vector2.zero) { cc.RotateWithAnotherTransform(cameraTransform); }
|
|
|
Post by mightofficiel on Feb 20, 2019 18:06:13 GMT
OK i'll try , i keep you updated
|
|
|
Post by mightofficiel on Feb 20, 2019 19:16:42 GMT
well uh is it possible to have multiple "smooth rotation value" when my camera is at "default state" and another one when the camera is at the "strafe state"?
thanks for your help !
|
|
|
Post by Invector on Feb 21, 2019 16:53:42 GMT
Sure just change the value of the smooth for the default and strafe camera state
|
|
|
Post by mightofficiel on Feb 21, 2019 21:16:14 GMT
Hi ! I was talking about the "smooth camera rotation" soory , here a screenshot , that would be great if you have a suggestion about it because i'm stuck lol
|
|
|
Post by Invector on Feb 22, 2019 13:40:32 GMT
You could change the MouseSensitivity, it has pretty much close results
|
|
|
Post by mightofficiel on Feb 23, 2019 17:09:37 GMT
This is not possible , i mean , i'm using the lock-on option so xD
ok and what if i use 2 camera both in the oposite side, i disable one when i press a button in order to have a good results , i'll try this
streamable.com/on9nt
|
|