playMaker

Author Topic: Prevent Vect3 from Being Either NaN or Infinity  (Read 1464 times)

Xander Davis

  • Playmaker Newbie
  • *
  • Posts: 24
Prevent Vect3 from Being Either NaN or Infinity
« on: July 19, 2017, 03:30:42 AM »
How can I prevent a Vect3 from being either NaN or Infinity?  This happens after using the 'Nav Mesh Sample Position' action, sometimes.  It prevents me from setting a Move Target position.

Help?

Xander Davis

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Prevent Vect3 from Being Either NaN or Infinity
« Reply #1 on: July 19, 2017, 03:55:33 AM »
I don't need to know this now, but it would probably be good for everyone's reference if you do know how to do this.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Prevent Vect3 from Being Either NaN or Infinity
« Reply #2 on: July 19, 2017, 04:25:52 AM »
Hi,
I think you need to use the 'nearest Point Not Found' Event and in the next state set the vector 3 to a value.
or set a next frame event instead of a value and point it back to try again.

Xander Davis

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Prevent Vect3 from Being Either NaN or Infinity
« Reply #3 on: July 19, 2017, 04:39:01 AM »
Thanks!