I want to use three.js to develop a tool like this:
But at the moment, I don’t know how to do it.
In particular, the first step is how to create a cube by dragging the mouse.
How to get and set the position of the cube?
I think the zoom of the camera can be changed arbitrarily. How to determine the selected starting position?
Can you give me some ideas to help?
Or tell me which 3D data formulas I should learn.
Thank you, but I have mastered the basic part of the there.js.
I found this example and gave me some ideas.
Maybe I also need to add an invisible floor, and then use raycaster and mouse(event) to calculate the location of the car.
I will try and hope it will come true.
Wow, I have realized it according to this idea !
thanks for the awesome information.
I got an idea, you can get some of the point’s position around the mouse by GPU selection,and then create a plane as the same height as the point did for interaction cause I saw the example u are showing the point’s color is height related.
only two sides in a plane at most, check the intersection quickly by using
I don’t think we need to use