nyx
New vMember
Posts: 13
|
Post by nyx on Feb 9, 2020 3:40:39 GMT
I'd like to always be able to move the character forward/up when I press up on the joystick and while using the right stick to rotate the camera around. So if I move the camera behind it and press up it will go up instead of sometimes having to press down depending on the camera's position. Instead, whenever the player stops if I press forward it will immediately snap around 180 and go toward the direction that the camera was originally at. Hope that makes sense.
Thanks in advance!
|
|
|
Post by Invector on Feb 10, 2020 19:15:08 GMT
That's the mechanic of the most popular third-person games these days, do you have any reference of the behavior you want?
|
|
nyx
New vMember
Posts: 13
|
Post by nyx on Feb 11, 2020 1:31:38 GMT
That's the mechanic of the most popular third-person games these days, do you have any reference of the behavior you want? Fallout New Vegas for example. Is there a way to get the camera to rotate with the player to turn using the right stick and the left stick moves back and forth and strafes?
|
|
|
Post by Invector on Feb 11, 2020 13:41:46 GMT
Yes, check the option RotateWithCamera in the Strafe Locomotion
|
|
nyx
New vMember
Posts: 13
|
Post by nyx on Feb 11, 2020 16:07:22 GMT
That wasn't working, which is probably due to how I had everything set up. I inserted the third person character prefab and had been using the freelook camera from Standard Assets, but I then replaced that with the TPCamera from Invector attached to a camera rig. I then found the TPCamera prefab in the example scene (but could not otherwise find it in assets) and copied that over. I still couldn't get it to do free rotate, but I made some changes to the code and it no longer flips the character around so I can move the camera and turn at the same time (but it still will not rotate with camera.) What is the correct way to set up the camera?
|
|
|
Post by Invector on Feb 11, 2020 17:01:06 GMT
It's probably a good idea to create a new clean project, import a fresh template and create a new character. The camera is automatically created as well you just need to assign a TpCameraListData
|
|