playMaker

Author Topic: Rotate cube - Axis always pointing fowards  (Read 5031 times)

SlimeyOoze

  • Playmaker Newbie
  • *
  • Posts: 10
Rotate cube - Axis always pointing fowards
« on: July 31, 2024, 11:01:14 AM »
Hello,

I have a cube that I can control (forwards, backwards, rotate left, rotate right)

With no success, I'm trying to rotate the cube 90 degrees left or right but have the axis rotate with it so its always facing forwards?

Any ideas, thank you

Dustiwi

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Rotate cube - Axis always pointing fowards
« Reply #1 on: August 15, 2024, 12:31:23 PM »
Not sure what you're trying to achieve but try checking the hierarchy of the object you're trying to rotate?

SlimeyOoze

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Rotate cube - Axis always pointing fowards
« Reply #2 on: August 19, 2024, 08:57:48 AM »
Hello Dustiwi,

Basically I have a cube. I control it with the arrow keys, up=forwards down=backwards...left & right. If I press right, the cube rotates 90 degrees right. Then should I press the up arrow, I want the cube to move forwards in its current facing direction.

At the moment, the cube rotates but the axis doesn't go with it, so if I rotate the cube and press forwards, it moves forwards in the original direction not the current?

I'm using the smooth look at/direction option but it doesn't seem to work

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Rotate cube - Axis always pointing fowards
« Reply #3 on: September 13, 2024, 12:30:42 PM »
Hi,

There is a difference between local and world axis when rotating. make sure you rotate "self" or "locally"

Let me know if you still get stuck with this.

Bye,

Jean