playMaker

Author Topic: Strange float value after 'Get Vector3 XYZ'  (Read 2700 times)

markinjapan

  • Full Member
  • ***
  • Posts: 103
Strange float value after 'Get Vector3 XYZ'
« on: December 08, 2012, 09:13:59 AM »
Hi,

After getting a Vector3 (Get Vector3 XYZ), the X value is not the same as the original X value of the vector 3.

Am I doing something wrong?

Thanks

markinjapan

  • Full Member
  • ***
  • Posts: 103
Re: Strange float value after 'Get Vector3 XYZ'
« Reply #1 on: December 08, 2012, 10:57:07 AM »
Could possibly be something to do with Inverse Transform Direction?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Strange float value after 'Get Vector3 XYZ'
« Reply #2 on: December 08, 2012, 12:25:21 PM »
The E-07 part of the number means it's a very small number: 0.000000192

This happens sometimes when working with floats because of rounding errors. The UI should probably just show 0 in this case, to avoid confusion...


markinjapan

  • Full Member
  • ***
  • Posts: 103
Re: Strange float value after 'Get Vector3 XYZ'
« Reply #3 on: December 08, 2012, 12:36:29 PM »
Thanks for that. Always wondered what that meant.

I'll get around it for now by using the float round action.