LUADOC - Farming Simulator 22

getLocalClosestSplinePosition

Description
Get closest world space position and time on spline to given world space position
Definition
getLocalClosestSplinePosition(integer shapeId, float time, float timeRange, float worldX, float worldY, float worldZ, float eps)
Arguments
integershapeIdshapeId
floattime
floattimeRange(searches in -/+ 0.5*range)
floatworldX
floatworldY
floatworldZ
floatepsworld space error
Return Values
floatworldX
floatworldY
floatworldZ
floattime