기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


Kinematic Body Type fundamentals

Explore the properties of the Kinematic Body Type to make a Rigidbody 2D to move under simulation only with explicit user control.
읽는 시간 1분최근 업데이트: 22일 전

The Kinematic
Body Type

?

Rigidbody 2D is designed to move under simulation, but only under very explicit user control. While a Dynamic Rigidbody 2D is affected by gravity and forces, a Kinematic Rigidbody 2D is not. Because of this, the Kinematic Rigidbody 2D has a lower demand on system resources than a Dynamic Rigidbody 2D, allowing it to be simulated faster.
To reposition a Kinematic Rigidbody 2D, it must be repositioned explicitly via Rigidbody2D.MovePosition or Rigidbody2D.MoveRotation. Use physics queries to detect collisions, and scripts to decide where and how the Rigidbody 2D should move.
A Kinematic Rigidbody 2D can still move via its velocity, but the velocity is not affected by forces or gravity. A Kinematic Rigidbody 2D does not collide with other Kinematic Rigidbody 2Ds or with Static Rigidbody 2Ds and will only collide with Dynamic Rigidbody 2Ds.