Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Xkynar · Jul 10, 2016 at 05:19 PM · charactercontrollerstuck

CharacterController gets stuck in procedural map

In my project, i have a procedurally generated map consisting of several pre-made rooms which get connected by their "doors". I have then created AI's (with the help of RAIN AI) which move with the CharacterController by calling the Move method. In many occasions, my AI gets stuck in the transition between rooms.

To isolate the bug and make sure it was not a navmesh problem, I extracted a section of the generated map in which this happened and regenerated the navmesh. I then observed that the bug still consistently happened, so It is likely to be due to the CharacterController.

This gif ilustrates the problem: http://i.imgur.com/jZzKkPi.gif

As you can see, when the AI arrives the transition between rooms (being both the "room" simple ramps), it gets stuck, and in this example it even goes a bit upwards.

This happens in many cases, even when descending the ramps, its not a "going up ramps only" thing. I already tried messing around with the CharacterController variables, and some changes do improve this behavious, but occasionally it still happens, which is unacceptable.

Anyone had the same problem?

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 Cherno · Jul 10, 2016 at 09:12 PM 0
Share

Sounds more like a physics-related problem, try adding the CC settings, like max step height.

avatar image Xkynar Cherno · Jul 10, 2016 at 11:18 PM 0
Share

I aint using the physics engine tho, Character Controller's goal is to avoid that. I'm using the default settings...

avatar image Cherno Xkynar · Jul 10, 2016 at 11:34 PM 0
Share

Well yeah sure but the CC still simulates a RigidBody and registers collisions.

Show more comments
avatar image Whiteleaf · Jul 10, 2016 at 11:53 PM 0
Share

A problem with the objects colliders perhaps?

avatar image Xkynar Whiteleaf · Jul 11, 2016 at 01:39 AM 0
Share

The map was made with probuilder basic, so all colliders are automatic ($$anonymous$$esh Colliders)

0 Replies

· Add your reply
  • Sort: 

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

Character stucks always (Rigidbody/Character) 0 Answers

Character Controller sticky head.... Help!? 1 Answer

NPC CharacterController doesn't move or stops randomly 0 Answers

How to check if a character hasn't changed its position in the last x seconds? 1 Answer

CharacterController sinking on edges of colliders 0 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