Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: peaks on December 09, 2017, 01:18:33 PM

Title: how-to get a smoother object rotation?[SOLVED]
Post by: peaks 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
Title: Re: how-to get a smoother object rotation?
Post by: djaydino on December 09, 2017, 01:42:02 PM
Hi.
There are some 'damp' actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) that could help
Title: Re: how-to get a smoother object rotation?
Post by: peaks 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


Title: Re: how-to get a smoother object rotation?
Post by: peaks on December 10, 2017, 12:51:18 PM
got it!

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