playMaker

Author Topic: [SOLVED] Playmaker or Unity bug??? Get axis vector action  (Read 5522 times)

justifun

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 280
[SOLVED] Playmaker or Unity bug??? Get axis vector action
« on: March 26, 2012, 12:21:54 PM »
Came across an interesting possible bug, but i'm not sure if its a unity or a playmaker action issue.

If you create a Get Axis Vector action but only want to use one of the axis EG: vertical
and you specify "NONE" for the other, or leave it blank, then your action will not work correctly.  The behavior of the input does not work correctly.  The vector that gets outputted does not map into a characters controller properly.  Something is screwy with the math.

However you can work around it by creating a new input type and taking out its ability to do anything but assigning the other axis to that input name eg: BLANK

then the vertical input axis store vector gets calculated correctly when using it with a controller move action for example.

This whole point is moot if you just use the custom action "Get axis vector 2" instead, but i thought i should point it out. for those who may stumble across it.
« Last Edit: May 09, 2012, 12:40:59 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: Playmaker or Unity bug??? Get axis vector action
« Reply #1 on: March 29, 2012, 01:54:19 PM »
I posted an update that lets you leave an axis blank:
http://hutonggames.com/playmakerforum/index.php?topic=1302.0