For example if I wanted cars to race around an oval track using cones as the waypoints but each car would stay a different distance (generated randomly) to the right of each cone assuming they are racing counter-clockwise.
Thanks!
Re: Sample code for how to use models as waypoints?
[Re: bpc31]
#240133 12/09/0816:3212/09/0816:32
vec_add(car.x, temp); //set car position to cone position
temp.x = random(100)-50; //create random dist from -50 to 50
temp.y = 0; temp.z = 0;
vec_rotate(temp, cone.pan); //rotate vector
vec_set(car.x, cone.x); //add the random side dist to the car
Re: Sample code for how to use models as waypoints?
[Re: oliver2s]
#241919 12/20/0801:0012/20/0801:00
Have a look at this (very good) open source pathfinding engine: Intense Pathfinding 2 from the creators of Intense X: www.intense-i.com They also use models as waypoints.