playMaker

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

peaks

  • Playmaker Newbie
  • *
  • Posts: 27
how-to get a smoother object rotation?[SOLVED]
« on: December 09, 2017, 01:18:33 PM »
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, 12:51:38 PM by peaks »

djaydino

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

peaks

  • Playmaker Newbie
  • *
  • Posts: 27
Re: how-to get a smoother object rotation?
« Reply #2 on: December 10, 2017, 06: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
Re: how-to get a smoother object rotation?
« Reply #3 on: December 10, 2017, 12:51:18 PM »
got it!

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