Yuka bounding box

Any ideas how to restrict the yuka behaviours (like wandering) to a volume like box or a sphere of some radius? I tried boundingSphere method of the vehicle and radius in wanderingBehavior constructor but it doesnt seem to be doing the job.

Probably the best way is to set a sphere or a box mesh to trigger intersections and, if such happen, do something (for example, change a direction vector of wandering entity).

1 Like

Thanks, will try that.