enzoDs Posted October 12, 2019 Share Posted October 12, 2019 Hello, I would need your help again, I need to know how I can rotate a dxDrawMaterialLine3D in x,y,z Sorry for the google translator and thank you for the attention Link to comment
root. Posted October 12, 2019 Share Posted October 12, 2019 bool dxDrawMaterialLine3D ( float startX, float startY, float startZ, float endX, float endY, float endZ, element material, float width, [ int color = white, [ bool postGUI = false, ] float faceTowardX, float faceTowardY, float faceTowardZ ] ) faceTowardX, faceTowardY, faceTowardZ 1 Link to comment
Moderators IIYAMA Posted October 12, 2019 Moderators Share Posted October 12, 2019 (edited) 11 hours ago, enzoDs said: rotate a dxDrawMaterialLine3D in x,y,z This information might also be useful for you: local x, y, z = 0, 0, 10 local rx, ry, rz = 0, 0, 0 -- test rx, ry, rz = (rx + math.random(3)) % 360, (ry + math.random(3)) % 360, (rz + math.random(3)) % 360 -- local m = createMatrix(x, y, z, rx, ry, rz ) local startX, startY, startZ = getPositionFromMatrixOffset(m, 0, 1, 0) local endX, endY, endZ = getPositionFromMatrixOffset(m, 0, -1, 0) local faceTowardX, faceTowardY, faceTowardZ = getPositionFromMatrixOffset(m, 1, 0, 0) (functions are on that topic) Edited October 12, 2019 by IIYAMA 2 Link to comment
enzoDs Posted October 12, 2019 Author Share Posted October 12, 2019 Oh, tanks for the helps!!! have a nice day! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now