LUADOC - Farming Simulator 19

getLocalClosestSplinePosition

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