Added friction and gravity.