playMaker

Author Topic: Rotating 3d cube  (Read 1025 times)

Kristian

  • Playmaker Newbie
  • *
  • Posts: 1
Rotating 3d cube
« on: December 17, 2017, 03:00:50 PM »
Hi!

I'm new to playmaker. I want to make something similiar to this
A rotating cube. I have played around a litte bit with add torque, rotate towards etc but I'm kinda stuck and need help. How can i flip the cube like in the game above?

Many thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Rotating 3d cube
« Reply #1 on: December 18, 2017, 02:25:29 AM »
Hi,

 what are you trying to achieve? because add torque requires a rigidbody and a good understanding of the physics engine that Unity uses. if it;s aregular object, use the action "rotate", "rotate towards" is more complex and requires a target for this.

 so if you simply want a never ending rotation, simply use "rotate" and check everyframe and per seconds as well as the value for which axis you wanto rotate ( put 90 in the y and it will rotate 90 degree per seconds)

 Bye,

 Jean