简体   繁体   中英

Unity object going through wall

What I've tried and checked:

  1. Object has a non-trigger sphere collider
  2. Object has RigidBody
  3. Object has very low mass
  4. Object is using Continuous Collision Detection
  5. I am adding a low force to the RigidBody at Start , not Update , instead of manually moving every frame
  6. Wall has a non-trigger box collider
  7. Wall has RigidBody
  8. Wall is using Continuous Collision Detection

Some other things to note that I don't think the matter is that the object's parent also has a RigidBody .

Before this, I was using a RayCast to move it out of the ground, but that was causing bugs when it went over inclines, and I would really like it to just work, but for some reason, the ball just goes through inclines, instead of going up them, even after everything else I've tried.

~Try this: in Rigidbody properties, try to change Collision Detection to Continuous instead of discrete. Let me know if that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM