RigidBody is used to allow objects to interact with Physics in your game including collisions and gravity. RigidBody can also be used with the getContacts method to detect collisions and run appropriate code. The Bullet physics engine is used for these calculations.