Lua doesn't use 0 based index arrays, including vectors. RealMotion however uses 0 based index arrays so this needs to be accounted for when sending data to a Lua script. So the first position in a array in Lua will start at 1 while the first position in an array in Realmotion will start at 0.
Why is a vector index shifted by 1 in a Lua script? Print
Modified on: Thu, 4 Feb, 2021 at 12:14 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.