2D Movement in Unity
<关于2D碰撞的一些优化设置>
Rigidbody2D-Collision Detection
- Discrete
GameObjects with Rigidbody 2Ds and Collider 2Ds can overlap or pass through each other during a physics update
- Continuous
GameObjects with Rigidbody 2Ds and Collider 2Ds do not pass through each other during an update
Physics Material 2D
- Friction
- Bounciness
1 | // CharacterController2D.cs |