Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: Raptor5399 on July 24, 2014, 12:13:16 PM

Title: Transform Direction & Look At actions give incorrect results[SOLVED]
Post by: Raptor5399 on July 24, 2014, 12:13:16 PM
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
Title: Re: Transform Direction & Look At actions give incorrect results
Post by: Raptor5399 on July 27, 2014, 01:06:30 AM
Solved, my mistake.