playMaker

Author Topic: how-to get a smoother object rotation?[SOLVED]  (Read 1314 times)

peaks

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
how-to get a smoother object rotation?[SOLVED]
« on: December 09, 2017, 11:18:33 AM »
Hey everyone!
I'm using a daydream-controller to control the roation of a GameObject. Right now I can rotate my finger on the touchpad and get the exact rotation-value (position of my finger) with a float-number ranging 0-360°, which I re-use in PM with the action 'set rotation' on the y-angle.

But, the movement feels kinda 'too direct' and superfast, is there a way of creating a smoother 'easing/lerp' -style movement with that float-value + some PM actions?
Thanks in advance
« Last Edit: December 10, 2017, 10:51:38 AM by peaks »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5546
    • View Profile
    • jinxtergames
Re: how-to get a smoother object rotation?
« Reply #1 on: December 09, 2017, 11:42:02 AM »
Hi.
There are some 'damp' actions on the Ecosystem that could help

peaks

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: how-to get a smoother object rotation?
« Reply #2 on: December 10, 2017, 04:05:10 AM »
Hej djaydino! Thank you for your fast reply :)
I tried the float smooth damp action, but unfortunately I don't understand how to put my values inside the action to affect my movement.

Right now it looks like this (in my start state):
[get proporty] -> gets a global float from a c# script, every frame, value 0-360
[float smooth damp] -> ???
[set rotation] -> every frame



peaks

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: how-to get a smoother object rotation?
« Reply #3 on: December 10, 2017, 10:51:18 AM »
got it!

"float smooth damp angle" is working and gives me a wanted result \o/