playMaker

Author Topic: 90 degree rotations with TweenRotation[SOLVED]  (Read 1025 times)

picture

  • Playmaker Newbie
  • *
  • Posts: 2
90 degree rotations with TweenRotation[SOLVED]
« on: May 30, 2020, 05:33:04 PM »
I'm want to rotate a scene with 90 degree increments, works fine with the regular Rotate action with vector3 variable (0,90,0)
Each button press rotates this from 0 --> 90 --> -180 --> -90



I want to make the rotation smoother. There is some old posts about this (https://twitter.com/JeanAtPlayMaker/status/847705218993143808), but it's using the old itween, but I would like to try and use this with the new (beta) tween actions.

the rotation looks nice, but whatever I do, I can't seem to rotate this more than 90 degrees. I'm assuming that it is always rotating back to the the variables vector3 (0,90,0), but i'm still very new to this so any help and explinations would be great.  Feel like I've tried all the From and To options and cant seem to figure it out



thanks so much!
« Last Edit: June 01, 2020, 06:14:28 AM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: 90 degree rotations with TweenRotation
« Reply #1 on: May 31, 2020, 03:32:48 AM »
Hi.
Hi, Have you tried using the 'offset'

From 'current rotation' to 'Local offset'

You can see a sample on the link below :

https://imgur.com/gallery/6g2OG88
« Last Edit: May 31, 2020, 03:55:45 AM by djaydino »

picture

  • Playmaker Newbie
  • *
  • Posts: 2
Re: 90 degree rotations with TweenRotation
« Reply #2 on: May 31, 2020, 10:06:56 PM »
Thanks so much, this solved it!