0
Answered

Roll a cube (Request)

MissBig 3 months ago updated by Lazlo Bonin (Lead Developer) 3 months ago 3

Hi I know there is a roll a ball tutorial but can someone be able to make a small tutorial on how to roll a cube. I did come across a coded tutorial but I want to do this in bolt because I'm, not a coder which is the reason why I opted for visual scripting. The link to the scripted tutorial part 3 is https://www.youtube.com/watch?v=LACgclt-aCM But I wanted to try this in bolt.

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Answer

+1
Answer

Not a tutorial but you should see how it works very easy.


This are my Object Variables:



To flip the cube forward:



To flip the cube backwards:



To flip the cube left:



To flip the cube right:




To make it more organized i made a Sub Macro for all actions:



Make sure you enable Coroutine on your inputs, because we use a wait for seconds node.




Downloads:
Full Bolt Macro: FlippingCubeAll.asset
Sub Macro: FlipCubeSubMacro.asset
Scene: Flipping Cube.unity

As alternative you can also use physics like this:
FlippingCubePhysics.asset

+1
Answer

Not a tutorial but you should see how it works very easy.


This are my Object Variables:



To flip the cube forward:



To flip the cube backwards:



To flip the cube left:



To flip the cube right:




To make it more organized i made a Sub Macro for all actions:



Make sure you enable Coroutine on your inputs, because we use a wait for seconds node.




Downloads:
Full Bolt Macro: FlippingCubeAll.asset
Sub Macro: FlipCubeSubMacro.asset
Scene: Flipping Cube.unity

As alternative you can also use physics like this:
FlippingCubePhysics.asset

+1

Thank you so much