• 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 black843 · Dec 07, 2014 at 05:21 PM · physicscharactercontroller

CharacterController and Physics!

Hey.

I would like to know if there is any way to give a CharacterController same Physics like a rigidbody. What I especially like to know how to give the CharacterController a rotation if moving onto a mountain. Is the rigidbody the only solution?

Thanks for each answer ;)

Comment
Add comment
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

2 Replies

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

Answer by RealMTG · Dec 07, 2014 at 05:33 PM

I don't know if I am to much help but I would go for a Rigidbody player. The CharacterController is not really that great when it comes to physics. If you do want physics for the CC you have to code them yourself. If you want a finished rigidbody player, get sample assets from the assets store. https://www.assetstore.unity3d.com/en/#!/content/14474 It is made by the Unity guys and it is free. It is really great and you can probably make your own controller if you just take a look at the player controller scripts in the asset.

Sorry if this wasn't what you are looking for but it is just a tip.

Comment
Add comment · Show 5 · 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 black843 · Dec 07, 2014 at 06:12 PM 0
Share

thank's for that. I'll have a look at it. Finally that means, that you prefer a Rigidbody? Damn.. I started with a CC's for players... finally there causes a problem, because Rigidbody's don't interact with CC's... but thank's for the advice ;)

avatar image fafase · Dec 07, 2014 at 06:46 PM 0
Share

I think the sample asset has a CC using rigidbody. not sure though

avatar image black843 · Dec 07, 2014 at 07:01 PM 0
Share

yes. As I can see there is just a Rigidbody. But the controll is such awesome ;) hahah nice tip. It looks like that I have to remove the CC's and make a configuration for Rigidbody based on this project... Finally it's sure that a CC has no adventages?

I would like to hear more opinions...

avatar image RealMTG · Dec 07, 2014 at 07:04 PM 0
Share

The only advantage I can see from the CC is the step height which is REALLY good for stairs and such. The rigidbody doesn't have that implemented but can be implemented. I don't know how honestly but it can be done.

avatar image black843 · Dec 07, 2014 at 07:19 PM 0
Share

that's no problem. Just jump xD

avatar image
0

Answer by Pflobus · Dec 07, 2014 at 06:01 PM

I think you probably just need a rigidbody. Maybe lower the mass to it won't fall off whatever it is, but that should work. Except that all controllers, at least in first person, come with a built-in rigidbody.

Comment
Add comment · Show 3 · 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 Pflobus · Dec 07, 2014 at 05:29 PM 0
Share

But if it's in 3rd person, same may work, but I am not sure.

avatar image MrSoad · Dec 07, 2014 at 06:06 PM 0
Share

The FPS controller does not have a rigidbody as standard. It can be added but is not there by default. However the FPS controller script auto corrects rotation weather there is a rigidbody or not.

You can make it run in FixedUpdate() with a rigidbody but you then have the camera moving in relation to this and it tends to cause judder. So the Camera script needs rewriting to sort out this new problem.

You can also add a bit of script to the FPS Controller that will make it interact with physical objects, but this too is prone to glitches as it is running in Update().

The better solution here by far is what Real$$anonymous$$TG(+1) is suggesting above.

avatar image black843 · Dec 07, 2014 at 07:03 PM 0
Share

Yes. That's true. Getting rid of these CC's...

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I make two Character Controllers Collide 2 Answers

How to I make my player push off of the ground? 0 Answers

How to move while jumping? 1 Answer

How to make my Character run through walls with the use of the Character Controller component 1 Answer

Sliding down a slope with a character controller 1 Answer


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