playMaker

Author Topic: Quaternion get Angle/Axis [SOLVED]  (Read 70 times)

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Quaternion get Angle/Axis [SOLVED]
« on: November 09, 2017, 11:54:06 AM »
I'd like to request a action that gets the angle and axis from a Quaternion using Quaternion.ToAngleAxis

Something like this only with a Quaternion as input and everyframe/updatetype.

"transform.rotation.ToAngleAxis(out angle, out axis);"

My own attempts at this action did not pan out ;D
« Last Edit: November 10, 2017, 06:15:28 PM by LordHorusNL »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Quaternion get Angle/Axis
« Reply #1 on: November 09, 2017, 11:53:21 PM »
Hi,

 there is an action for this already: QuaternionAngleAxis

 is it not working for you?

 Bye,

 Jean

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
Re: Quaternion get Angle/Axis
« Reply #2 on: November 10, 2017, 05:39:32 AM »
*Edit*

Nevermind this request Jean

I've managed to make the action myself and i will update this post with the file after i've cleaned it up a little.

The action will now retrieve the angle and axis from a target quaternion.

Yippie ;D
« Last Edit: November 10, 2017, 06:21:34 PM by LordHorusNL »