Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

  1.  
    Hello folks,

    I am trying to make some particles follow a few waypoints,
    The reason i do this is because i want to base the AI of a racegame on flint, so that the racers can collide with eachother and keep a certain distance and maybe even ride around in 'flocks'.

    Now, i've already come a great way, but it's not quite done.
    I have written a manager that inserts some particles at the start, and makes these particles follow through all the waypoints.
    The only problem is that the particles seem to 'bounce of' of these waypoints, whenever they hit a waypoint the SOMETIMES seem to turn 180 degrees around, which is unwanten behaviour..

    I've already been trying to fix this for 2 days now to no avail.
    Below is a link where you can download my source. The yellow dots are the waypoint following particles, the yellow lines are the waypoints.
    http://www.mediafire.com/?p9cd8c7hh3m4bgm

    Any help on the subject will be greatly appreciated.
    Also, feel free to use these sources in your own projects!
    • CommentAuthorRichard
    • CommentTimeFeb 3rd 2011
     
    Hi

    It looks like your particles are bounding off the bounding box, not the waypoints. If you make the bounding box bigger than the stage then you can contain the particles without the bounce being visible.