P
P
Programmer2018-09-04 08:42:39
JavaScript
Programmer, 2018-09-04 08:42:39

What is 3D animation done in JS?

I saw a complex layout. There, the cubes are made in 3D, they rotate in different directions, when you move the mouse along the cube, it collides with other cubes and interacts with them, the cubes scatter in different directions, rotate. How is this kind of physics done in JS?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
roswell, 2018-09-04
@roswell

three.js + Physijs .

D
Dmitry Luzanov, 2018-09-04
@dmitry_luzanov

three.js and so on are just libraries / frameworks for the convenience of working with WebGL , so the question "How such physics is done in JS" would be more correct to answer WebGL. And if you want to understand exactly how and what works there, then start with WebGL. And what exactly was done in your case, then this is most likely three.js.

A
Artem Spiridonov, 2018-09-04
@customtema

Ctrl-U - and everything is in front of you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question