Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on March 27, 2019, 03:22:03 AM

Title: Convert Direction to rotation action
Post by: jeanfabre on March 27, 2019, 03:22:03 AM
Hi Everyone.

 New convenient action to wrap up some useful features that otherwise takes few actions to perform.

So you can now get a rotation from a vector3 direction ( from a raycast normal for example), or a start and end gameobject defining the direction ( more like a look at )

you can invert the direction and save the result in a quaternion or directly affecting a gameobject rotation.

(https://i.imgur.com/umGZ3jO.png)

(https://i.imgur.com/RZtPjf4.png)


it's basically the same as if you used either a QuaternionLookRotation or a LookAt action, but conveniently wrapped together.

Bye,

 Jean