Random Rotate 3D Object on all 3 Axis

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By plambrecht

I cannot find any examples of this, and am having trouble wrapping my head around what I want to accomplish.

On a button-click, I need to rotate a 3D object randomly, on all 3 axis for 3 seconds and then stop. Ultimately it would be great to see it accelerate and decelerate.

Any help would be greatly appreciated.

:bust_in_silhouette: Reply From: stormreaver

Generate a random normalized Vector3, then rotate around the vector.

Thanks for the advice. This is going to take me a while to figure out. Not really sure where to start on this.

plambrecht | 2021-04-23 18:07