ported smoothWorldPosition.js to SmoothWorldPosition.cs