- Home /
How to rotate a cube with ecuations,
hello how can I rotate a cube and move on x axis using transform but using a sistem of ecuations. I would like to aply rotate on z axis from horizontal input then acording to Rotation on z axis(lets call it RZ), i would modify x and y positions using ecuations. (for a cube with side 1)
For now i have figured
y = |sin(2RZ)| * 2/sqrt(2) + cubeSide
x = -RZ/90
Can you give the right ecuations?,
First nitpick, it's 'equation'. Now the problem is that we have no idea what effect you are trying to accomplish, so we cannot possibly check if your equations are correct.
Have you taken a look at the following: http://wiki.unity3d.com/index.php/3d_$$anonymous$$ath_functions?_ga=2.64881574.86860190.1574696062-1148324474.1573590098
Or, perhaps: https://www.youtube.com/watch?v=zloF-9o-6S4
Your answer
Follow this Question
Related Questions
Tumbling a cube 1 Answer
Measure a rotating gameobject. 0 Answers
How to make my rotating sphere sticky? 2 Answers
Dynamic Cube Physics like other games 0 Answers