Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Velotri · Sep 28, 2014 at 06:27 PM · collisionmovementcontroller

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?

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Sep 28, 2014 at 06:30 PM 2
Share

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?

avatar image Velotri · Sep 28, 2014 at 07:09 PM 0
Share

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.

avatar image tanoshimi · Sep 28, 2014 at 07:14 PM 1
Share

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.

avatar image Velotri · Sep 28, 2014 at 07:25 PM 0
Share

Yup, it's such simple but kinematic rigidbody doesn't send collsion events. Non-kinematic rigidbody have phisics. (I dont need even gravity)

avatar image tanoshimi · Sep 28, 2014 at 07:54 PM 0
Share

This will send collision events and not be affected by gravity...

alt text

untitled.jpg (16.8 kB)
Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Velotri · Sep 28, 2014 at 06:59 PM 0
Share

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)

avatar image Kiwasi · Sep 28, 2014 at 07:49 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges