- Home /
What's the best alternative to Character Controller?
Hey, I'm creating a first-person roquelike. The question is: What's the best alternative to Character Controller?
I don't need any phisics. I just need to:
know when player collides walls, characters and other objects;
know when an object (eg. arrow) hits a character;
I could write my own controller but I don't know what should I use. Colliders? Triggers? CapsuleCast? Or own script checking collisions?
You know that Unity comes with a first person character controller that you can import into your project? It's not perfect, but have you tried starting with that?
Yes, I tried. But I want to have perfect (for my project) controller :)
I tried many things with Unity for about 3 months. Now I'm making serious project.
Unfortunately, we don't know what requirements would make a character controller "perfect (for your project)"... if all you need is the abilities listed in your question, that's not even a character controller - that's just a rigidbody, collider and an OnCollisionEnter() function.
Yup, it's such simple but kinematic rigidbody doesn't send collsion events. Non-kinematic rigidbody have phisics. (I dont need even gravity)
Answer by Cherno · Sep 28, 2014 at 08:27 PM
Take a look at this thread, it might help explain the advantages of using a custom-built controller.
https://www.packtpub.com/books/content/unity-3x-scripting-character-controller-versus-rigidbody
Answer by Kiwasi · Sep 28, 2014 at 06:31 PM
The character controller.
Please explain why you can't uses the standard character controller.
Work from the standard controller and modify it for your desired functionality.
Well, I just wanted to have a full control of the 'controller'. Probably I do unnecessary problems c:
(and I need to have similar sever-side code, so it's easier to move own client-side code to server-side)
So open up the default controller. Strip out all of the code you don't need. And rewrite from there.
Alternatively you can Google Unity character controller scripts. There are some good ones out there that you can use. There are also some YouTube tutorials.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Multiple Cars not working 1 Answer
Collision I dont understand 1 Answer
Unity3D HELP!!!!!!!!!!!!!!!!!!!!!! : How can i make physics controller jump/PLAY SOUND. 1 Answer
How do I set up my players controller script (How do I change the controls used to move and look) 2 Answers