Switched to doubles for smoother physics