Implemented gravity and primitive collision support.