How to drag object in X, Y, and Z axis with mouse.
I have a simple cube and I want to drag the object along all three axis using a mouse. Right now, I am only able to get it to move along the Y and Z axis, but I also want it to move along the X axis (so into and out of the screen). Here is a video that is basically what I want to do, but the person is using touch (I want to use a mouse). https://www.youtube.com/watch?v=3_CX-KtsDic&ab_channel=AlexanderZotov
This is what my code looks like right now: https://www.youtube.com/watch?v=0yHBDZHLRbQ
Thank you!
Your answer
Follow this Question
Related Questions
Object and Transform box misalign when moving away from 0.0.0. 0 Answers
Issues Spawning objects. 0 Answers
My Player rotates on the Z axis, but not the X axis. Why? 0 Answers
Rotate object around X axis 1 Answer
Rotation character whit the camera 0 Answers