cassius Posted August 17, 2017 Share 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++ Link to comment Share on other sites More sharing options...
Rick Posted August 17, 2017 Share Posted August 17, 2017 camRotation.y = camRotation.y + (mouseDifference.x / mouseSensitivity) The only real difference is there is no shorthand += in lua. 1 Quote Link to comment Share on other sites More sharing options...
cassius Posted August 17, 2017 Author Share 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++ Link to comment Share on other sites More sharing options...
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.