J
J
js_1232020-08-26 12:39:05
css
js_123, 2020-08-26 12:39:05

How to complete ThreeJs animation?

Hello. The question arose, is it possible to attach drag and drop to the object (sphere) itself, when, when dragging the sphere, it remained in place !, picked up speed, and spun in that direction and further?
I was able to implement something similar, only with mousemove (left/right while driving with the pointer). I will be grateful to everyone!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2020-08-26
@profesor08

Alternatively, you can simply cast a ray there and check which objects it intersects with. THREE.RaycastermethodintersectObjects

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question