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 Help
(Moderator:
600
) »
Roate Object with Mouse [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Roate Object with Mouse [SOLVED] (Read 2608 times)
sascham
Playmaker Newbie
Posts: 9
Roate Object with Mouse [SOLVED]
«
on:
December 10, 2011, 07:34:03 AM »
Hi,
I wonder if it possible to setup an rotation of on object.
For example i want to rotate an cube based on my mouse, if i press mouse button and drag to the left, cube turns left etc.
Thanks
Sascha
«
Last Edit: December 11, 2011, 01:51:52 AM by alexchouls
»
Logged
Alex Chouls
Administrator
Hero Member
Posts: 4003
Official Playmaker Support
Re: Roate Object with Mouse
«
Reply #1 on:
December 11, 2011, 12:09:10 AM »
You can use Get Axis to get mouse and joystick input then Rotate to rotate the object.
The attached screenshot shows a simple FSM that lets you click on an object and rotate it with the mouse. The Idle state has no actions.
Also checkout the Unity Input Manager docs:
http://unity3d.com/support/documentation/Components/class-InputManager.html
Logged
sascham
Playmaker Newbie
Posts: 9
[SOLVED] Re: Roate Object with Mouse
«
Reply #2 on:
December 11, 2011, 01:05:24 AM »
Thanks
worked great
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Roate Object with Mouse [SOLVED]