enzoDs Posted October 12, 2019 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
root. Posted October 12, 2019 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
Moderators IIYAMA Posted October 12, 2019 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
enzoDs Posted October 12, 2019 Author Posted October 12, 2019 Oh, tanks for the helps!!! have a nice day!
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