Refactored GravitySource for path preview