System.Nullable<Vector3> GetRandomPoint()

System.Nullable<Vector3> GetRandomPoint( BBox box )

Summary

Get a random point on the navmesh, within the bounding box. This will return null if it can't find a point on the navmesh in a few tries. Returning false doesn't mean it's impossible, our algorithm here isn't the best.

System.Nullable<Vector3> GetRandomPoint( Vector3 position, float radius )

Summary

Get a random point on the navmesh, within the sphere. This will return null if it can't find a point on the navmesh in a few tries. Returning false doesn't mean it's impossible, our algorithm here isn't the best.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.