playMaker

Author Topic: Transform Direction & Look At actions give incorrect results[SOLVED]  (Read 1272 times)

Raptor5399

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
I filed a bug (1064) but also wanted to post this here. I want to know if this is a known issue and if not, how much assistance is needed getting it reproduced for you in house so you can fix it or if maybe videos are enough to figure out the issue.

What happened:
Transform Direction works in the basic case of walking around on ground pointing up on Y.  But my character can crawl on walls and as soon as I get on a wall the Transform Direction action returns an incorrect result. I can tell it is wrong by drawing direction as a ray.  Coding this up by hand works.

Look At is returning the wrong result even in the most basic case.  I am using Look At for throwing items.  Basically I make the item look at the target and then I apply local force along its Z to propel it toward the target.  Once again, coding it by hand such as:
go.transform.LookAt(_throwAtPosition);
works fine, as does making that a method and calling it with the Send Message action. The Look At action however seems to always make the item look at the world origin and thus the item is always thrown towards the origin. I have recorded a video of this.

https://dl.dropboxusercontent.com/u/57966290/LookAt.mp4
« Last Edit: July 26, 2014, 10:07:26 PM by Raptor5399 »

Raptor5399

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: Transform Direction & Look At actions give incorrect results
« Reply #1 on: July 26, 2014, 10:06:30 PM »
Solved, my mistake.