Get Random Point in Navigable Radius (Can this be forced into a cone?)

Is there a way for me to use the Get Random Point In Navigable Radius node and have it only check within a cone? In my game the AIs are motorbikes who move forwards, but I was hoping to get some variation within their paths whilst still using pathfinding.

Do I need to add a filter class or some NavData? I’m not a programmer so I’m not sure how I’d go about solving this. I spent ages trying to clamp and flip the result into a valid positive x-axis but then i realised that this makes the “Navigable point” part invalid.
[/QUOTE]

Its probably possible…
There is node “random unit vector in cone with yaw and pitch”
Output of this node is max 1 1 1, its usually used for shotguns…
So, you can multiply this value from 1 to 1000 so you can get point in shotgun muzzle, or 500 units away from muzzle but still in cone… if you want only “2d cone” use pitch 1 and yaw 10 for example… :slight_smile: i hope you understand, if not let me know and i will make bp for this and print screen here.

1 Like