How to prevent colliders from passing through each other?

后端 未结 8 1428
天命终不由人
天命终不由人 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

提交回复
热议问题