cassius Posted August 17, 2017 Posted August 17, 2017 Hi I am trying to convert some code from c++ to lua script and am not sure how to convert the "+=" bit in the following line. camRotation.y += mouseDifference.x / mouseSensitivity; Anyone? Thanks Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Rick Posted August 17, 2017 Posted August 17, 2017 camRotation.y = camRotation.y + (mouseDifference.x / mouseSensitivity) The only real difference is there is no shorthand += in lua. 1 Quote
cassius Posted August 17, 2017 Author Posted August 17, 2017 That's how I guesed it was. Thanks. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.