## Shifting a scene in 3D using translate/rotate

Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

### Shifting a scene in 3D using translate/rotate

Are there any guides on how to shift perspective on a 3D model on input, for example on a cube, making it turn to a new face/side on every input you give it using rotate/translate?
I could imagine it would be of help to make use of the Hold modifier on this.

PS: Not sure of double post.
Posts: 1082
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

### Re: Shifting a scene in 3D using translate/rotate

This is fairly simple. Use a trigger on the source of (say) Y rotation. As a trigger increments by one (360 degrees) scale it by the angle you want - 0.25 for a cube. Since the cube will rotate 90 degrees instantly, you won't see the rotation until you add some smoothing.
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

### Re: Shifting a scene in 3D using translate/rotate

Sadler wrote:This is fairly simple. Use a trigger on the source of (say) Y rotation. As a trigger increments by one (360 degrees) scale it by the angle you want - 0.25 for a cube. Since the cube will rotate 90 degrees instantly, you won't see the rotation until you add some smoothing.
Well, not just rotate by input, that's simple, but holding the angle until the input hits again to whatever you have the current angle set to, then adding another 0.25 for the next face, and so on.
So the cube would essentially start off as 0, then when input hits, it will rotate 0.25, then hold the current value (0.25) until input hits again, adding another 0.25 to 0.50.

But yeah, you can get something quite expressive out of just rotate by input..
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

### Re: Shifting a scene in 3D using translate/rotate

I did it!
A step modifier did the trick!
https://i.gyazo.com/7a31a1903418051fc0d ... a635fb.mp4

https://i.gyazo.com/07069d318c5ff49308b ... a8f901.png

Gonna reply with the 3D on an actual cube when i wake up again.
Zetboi
Posts: 16
Joined: Mon Apr 05, 2021 5:30 am

### Re: Shifting a scene in 3D using translate/rotate

So here's the final example, pretty straight forward