Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: Lane on September 18, 2014, 12:02:07 PM

Title: Character Mouse Look (Top Down Style)
Post by: Lane on September 18, 2014, 12:02:07 PM
It's easy enough to make this with a few actions but I decided it needed to be even easier.

This does a raycast from a camera on a layer mask, then rotates a Rigidbody (Rigidbody.MoveRotation) to look at the point. Most of it is automagic, specify the floor layer and it should just works.
Title: Re: Character Mouse Look (Top Down Style)
Post by: thebrobotic on March 12, 2015, 10:00:31 PM
Found this today and love it already, but is it possible to change which axis it rotates in the .cs file? Sorry to bump an old topic but I do like this addon. Thanks!
Title: Re: Character Mouse Look (Top Down Style)
Post by: thebrobotic on March 12, 2015, 10:07:02 PM
Solved it, I don't know too much C# yet but learning and I blindly changed this line (line 82):

d.z = 0f;

..changed it from d.y, to d.z, and it worked the way I want. Thanks for the awesome addon and sorry to bump an old thread. Thought I might share in case any one else wanted to use it in the way I did.