Lezlike Posted March 1, 2019 Share Posted March 1, 2019 (edited) dxDrawLine3D ( x, y+1, z1, x, y, z1, tocolor ( 255, 0, 0, 230 ),2,true)--x dxDrawLine3D ( x+1, y, z1, x, y, z1, tocolor ( 0, 255, 0, 230 ),2,true)--y dxDrawLine3D ( x, y, z1, x, y, z1+1, tocolor ( 0, 0, 255, 230 ),2,true)--z Hi! How can I create this mover ? I dont know the calculations to move dxDrawLine3D. Thanks for help. Edited March 1, 2019 by Lezlike Link to comment
Dimos7 Posted March 2, 2019 Share Posted March 2, 2019 onClientClick -- Event getCursorPosition getElementPosition setElementPosition Link to comment
Lezlike Posted March 2, 2019 Author Share Posted March 2, 2019 Its not good because if you want to move in X axis the object move faster than cursor... Link to comment
Dimos7 Posted March 2, 2019 Share Posted March 2, 2019 onClientClick -- Event getCursorPosition moveObject Link to comment
JeViCo Posted March 2, 2019 Share Posted March 2, 2019 onClientCursorMove (worldX, worldY, worldZ variables + some math stuff to move object in 1 axis) + moveObject or setElementPosition @Lezlike 1 Link to comment
Lezlike Posted March 2, 2019 Author Share Posted March 2, 2019 I know this functions but I dont know the calculations. I made this but if I move a cursor sometimes the cursor goes faster then object...I need math to solve this, but I dont know math... 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