I’m pretty new to unity and scripting on here so I have a small question to ask. I was messing around with a rolling cube animation and decided to do it in script and I managed to find a JS script on the questions section that does it very well. Here is the code I’m using (top answer): How to make a Cube Roll in JS in direction of camera? - Questions & Answers - Unity Discussions
I don’t know a lot about JS as I’m much more in tuned with C# but do you guys know the best method of modding this script for an extruded cube as an extruded cube (Scale X:1, Y:2) turns on its axis at its center not at the bottom most pivot point?