# playMaker

### Author Topic: Rotating cubes  (Read 781 times)

#### Torito

• Playmaker Newbie
• Posts: 2
##### Rotating cubes
« on: January 06, 2021, 06:57:22 AM »
Hello, I have two cubes. I want to rotate cube number one in the Y axis and would like cube number two to follow cube number one's rotation at half speed in the X axis. Could someone kindly let me know how to achieve this in Playmaker?

#### LuminRabbit

• Full Member
• Posts: 161
• Lumin Rabbit
##### Re: Rotating cubes
« Reply #1 on: January 26, 2021, 07:45:49 PM »
You could have an FSM on the main cube and set its rotation in the Y with a variable.

Then on the second cube do a Get FSM Float, to get the rotation from the first Cube then divide it by 2 except this time put the variable in the X (the one you created from the get FSM Float)..

This way the first cube could rotate at a speed of 20 and the second cube could rotate at a speed of 20 divided by 2 = 10.

Also I believe you are posting in the wrong forum section.
« Last Edit: January 26, 2021, 07:51:26 PM by LuminRabbit »
Have I said how much I love playmaker!!! This is one amazing tool