Answer the question
In order to leave comments, you need to log in
How to center a rotating model?
There is a rotating dot cube - https://codepen.io/anon/pen/NZKQVq?editors=0010
It rotates around some axis outside of it.
There is also a ball (which was roughly and not skillfully converted into a cube from the link above) - https://codepen.io/team/basedesign/pen/NoPZyQ?edit...
It rotates around its central axis.
How can I make the cube rotate in the same way?
Answer the question
In order to leave comments, you need to log in
The coordinates of the points are random values in the interval -/+ half of the side of the cube.
https://codepen.io/anon/pen/ewYOjK?editors=0010
UPD. And you can also do this - we assign an extreme value to one of the coordinates (selected randomly), then the cube will be empty inside, all points on the faces . If you fix two coordinates - all points on the edges .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question