playMaker

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

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Quaternion get Angle/Axis [SOLVED]
« on: November 09, 2017, 01:54:06 PM »
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, 08:15:28 PM by LordHorusNL »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Quaternion get Angle/Axis
« Reply #1 on: November 10, 2017, 01:53:21 AM »
Hi,

 there is an action for this already: QuaternionAngleAxis

 is it not working for you?

 Bye,

 Jean

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: Quaternion get Angle/Axis
« Reply #2 on: November 10, 2017, 07: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, 08:21:34 PM by LordHorusNL »