Unity Third Person Controller and Third Person Camera scripts converted to C#

Just incase anybody else needs them, I’ve posted C# conversions of the Unity 3rd person controller and 3rd person camera scripts on my blog here (those javascript third person character controller scripts you get with Unity)

Or, if you don’t want to read about it you can just grab the scripts here instead :slight_smile:

Enjoy!

Thanks!

thanks for the conversion !

I looked on the blog for a way to contact you but didn’t see a contact button. Is the camera and movement scripts improved or just converted. With the traditional camera controller id like to be able to hold the right mouse button to turn the camera not just be able to move the mouse to move the camera. The point being want to have a curser that I can click on things.

Thanks

Hi Jeff, thanks for the code. I’m not quite sure if it is a bug or not. I assign the ThirdPersonController to a capsule and the ThirdPersonCamera zu my camera. Then I drop the player into the Camera Transform variable. But the script keeps telling “Please assign a target to the camera that has a ThirdPersonController script attached.”.

Edit: I had to assign the camera script to the player as well and not to the camera. Problem solved.

Indeed, this is also the case with the default UnityScript ‘ThirdPerson Camera’ script. I first dropped the script in the main camera and received the “Please assign a target to the camera that has a ThirdPersonController script attached” error. It wasn’t easy to figure out that I had to attach it to the Player object…

BUMP :smile:

hi, i can’t download this script, they have an error and they write not found thank you