playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Tutorials
(Moderator:
600
) »
Simple Object Rotation from Mouse Position...
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Simple Object Rotation from Mouse Position... (Read 8756 times)
holyfingers
Playmaker Newbie
Posts: 34
3D-artist and fledgling Unity Dev.
Simple Object Rotation from Mouse Position...
«
on:
October 20, 2016, 06:05:19 AM »
Hi there,
I've written up a short, simple tutorial for rotating an object in two, separate axes via mouse input:
http://www.holyfingers.co.uk/main/blog/2016/10/19/on-the-turn/
You'll need the GetMouseDeltaPosition action from here:
https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/Assets/PlayMaker%20Custom%20Actions/Input/GetMouseDeltaPosition.cs
I've attached the scene as well.
Cheers,
Nick
Logged
Twitter:
@holyfingers
djaydino
Administrator
Hero Member
Posts: 7619
Re: Simple Object Rotation from Mouse Position...
«
Reply #1 on:
October 20, 2016, 11:49:57 AM »
Hi,
Great!
I have added it to the
User Tutorials wiki
One thing tho.
You should avoid using Itween, it is outdated, very laggy and will be removed from playmaker in a future version.
You can look into
DOTween
and you can find the actions for it
here
Logged
Join the PlayMaker Discord Channel!
holyfingers
Playmaker Newbie
Posts: 34
3D-artist and fledgling Unity Dev.
Re: Simple Object Rotation from Mouse Position...
«
Reply #2 on:
October 20, 2016, 01:09:07 PM »
Thanks for the heads up! I'll give DOTween a look over and update the tutorial when I get a moment!
Cheers,
Nick
Logged
Twitter:
@holyfingers
holyfingers
Playmaker Newbie
Posts: 34
3D-artist and fledgling Unity Dev.
Re: Simple Object Rotation from Mouse Position...
«
Reply #3 on:
October 24, 2016, 06:14:47 AM »
Updated the tutorial to include an alternative using DOTween:
Cheers,
Nick
Logged
Twitter:
@holyfingers
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Tutorials
(Moderator:
600
) »
Simple Object Rotation from Mouse Position...