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 JonK · Jul 25, 2013 at 06:05 PM · collisioncollidercharactercontrollercharactermotor

CharacterController can jump through moving objects

I have a character that is using unity's character controller and character motor. There is a section in the level where the character has to jump across platforms and avoid objects moving towards him but when these objects hit him he just passes right through.

These moving objects do have box colliders on the them.

Thank you for your time.

EDIT: Also when jumping the character cannot pass through the objects if they are colliding with the top or bottom of him i.e. he is jumping up into a moving object he does not pass through at all.

After more debugging it seems the problems is that the objects that the character passes through are rotating into him and that causes him to pass through them.

Picture a spinning cube (horizontally spinning) with walls coming out of it's sides. When the player walks into one of the walls he can jump through it.

Comment
Add comment · Show 2
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 tpennetta · Jul 25, 2013 at 07:39 PM 0
Share

Have you set the Rigidbody Collision Detection to Continuous Dynamic for the objects so that it is tracking two moving dynamic objects for constant collision? I think it is more overhead but suits what you are looking for.

avatar image JonK · Jul 25, 2013 at 07:43 PM 0
Share

I set the collision detection to Continuous Dynamic but got the same results.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by DaveA · Jul 25, 2013 at 06:17 PM

Try putting RigidBodies on those moving objects

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 JonK · Jul 25, 2013 at 06:34 PM 0
Share

I put ridgid bodies on them and it provides more resistance but the character still goes through. Could it be that it's not a problem with collision but with the character forcing his way through?

avatar image Quantum2 · Jul 25, 2013 at 06:50 PM 0
Share

Rigid bodies only add physics to the objects, you must add a collider component

avatar image JonK · Jul 25, 2013 at 06:53 PM 0
Share

Each moving object has a box collider

avatar image Tryz · Feb 20, 2014 at 06:33 AM 0
Share

Any luck with this? I've go the same thing going on.

I have a rotating wall. If the character pushes against the side that's rotating away from the character, collisions stop the character.

However, if the character runs into the side that is rotating into the character, the character runs right through that side of the wall.

All combinations of physics object, collider, rigidbody.move(), etc don't work. :(

avatar image JonK · Feb 20, 2014 at 11:32 PM 0
Share

I ended up writing my own character motor and added a rigidbody and colliders to the player object.

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

19 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

Related Questions

When using a character controller for the player, can other colliders be used alongside the character controller? 1 Answer

Character Controller collision on Mesh Colliders Slopes Issue. 1 Answer

OnCollisionEnter does not work 4 Answers

Character Collider doesn't collide with other Colliders 2 Answers

Getting Character controller to fit model? 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