How to prevent colliders from passing through each other?

后端 未结 8 1403
天命终不由人
天命终不由人 2020-12-04 20:23

I am having trouble keeping game objects inside of a contained space. When they reach the edge, there is some momentary push back but then they will go right through the wal

相关标签:
8条回答
  • 2020-12-04 21:05

    How about set the Collision Detection of rigidbody to Continuous or Continuous Dynamic?

    http://unity3d.com/support/documentation/Components/class-Rigidbody.html

    0 讨论(0)
  • 2020-12-04 21:06

    Try setting the models to environment and static. That fix my issue.

    0 讨论(0)
提交回复
热议问题