playMaker

Author Topic: How to select a random transform within a NavMesh?  (Read 826 times)

cmonroy

  • Playmaker Newbie
  • *
  • Posts: 34
    • View Profile
How to select a random transform within a NavMesh?
« on: August 06, 2014, 01:23:32 PM »
Hello.

My scene has a grid of roads, sidewalks and buildings, each in its own layer, and a navmesh for the roads has been defined. I want to randomly spawn cars over the roads only, but for that I need a valid vector3 range or the cars would be spawned all over the other layers as well.

Any idea?

Thank you.