Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 GS-Kiwibird · Oct 10, 2012 at 03:15 AM · 2dcollisionrigidbodycontrollerplatformer

Are Character Controllers inefficient?

I read somewhere that there should not be more than 1 active Character Controller in a scene at a time.

Would I be alright using 4 Character Controllers at a time?

I'm making a multiplayer 2D platformer and I'm using Rigidbodies for character movement. Everything is fine except for one problem, when you fall from a high jump, the character goes into the ground a little bit reducing the player's forward momentum. Character Controllers do not have this problem when I use them (I believe it's due to the different way Character Controllers handle collision detection).

I'd prefer to stick with the rigidbodies, so if anyone has a solution to the "entering the ground for a frame" problem that'd be awesome.

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 Muuskii · Oct 10, 2012 at 03:57 AM 0
Share

What collision Detection method are you using on your rigidbody?

The options are: Discrete, Continuous, and Continuous Dynamic.

Continuous Collision Detection might help you with that issue. Dynamic seems unneeded for a situation such as this.

avatar image Eric5h5 · Oct 10, 2012 at 04:11 AM 0
Share

@$$anonymous$$uuskii: that's not how it works...if you're going to use continuous on an object, you need continuous dynamic if it moves, and continuous for any non-moving objects that the continuous dynamic object should collide with. Unless you have issues with extremely fast objects "teleporting" straight through colliders, you should not use continuous dynamic since it's very CPU-intensive.

avatar image Muuskii · Oct 10, 2012 at 04:24 AM 0
Share

@Eric5h5 Good to know. So you're suggesting that changing the Detection $$anonymous$$ethod is actually a suboptimal solution?

avatar image Eric5h5 · Oct 10, 2012 at 05:43 AM 0
Share

If you don't actually need Continuous for the reason I specified above, then it's best to avoid it.

avatar image Fattie · Oct 10, 2012 at 07:16 AM 0
Share

"the character goes into the ground a little bit reducing the player's forward momentum"

one very simple tip, make sure the collider of your ground is very thick - I mean deep. it should extend, unseen, many meters in to the center of the earth :)

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Eric5h5 · Oct 10, 2012 at 04:04 AM

Decrease the min penetration for penalty in the physics settings; also try increasing the solver iteration count.

Comment
Add comment · Show 1 · 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 GS-Kiwibird · Oct 10, 2012 at 05:13 PM 0
Share

I had already tried everything mentioned including messing with the Fixed Timestep, which helped, but did not fix it. I'm really at a loss here. How does the Character Controller detect collision? Perhaps I can just write my own character controller.

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

13 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

Related Questions

When In Fullscreen My Platformer Character Slows Down 0 Answers

Looking for some advice for a Horse with Rigidbody 0 Answers

2D Smooth Collision, Prevent Player from Clipping Through Wall 1 Answer

2d collision detecting simultaneous collisions. 1 Answer

Rigidbody2D - character jitter on collision 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