Are there any algorithms out there to make something move randomly around objects without touching them? [import]uid: 87611 topic_id: 14540 reply_id: 314540[/import]
move in what way? You have the random movement like the Brownian motion, or you have the set path movement like scouting or patrolling or you can have the movement biased towards a position on the screen.
So what are you after really?
cheers,
?
[import]uid: 3826 topic_id: 14540 reply_id: 53764[/import]
Not really.
You will need to code it specifically for your game.
Think of what can input to the object’s ai.
ie
- Its speed
- Its position
- What it can interact with
you then write rules to move your object while evaluating the inputs.
[import]uid: 5354 topic_id: 14540 reply_id: 53766[/import]
Thanks for the advice.
Jay I need to create something like a fly buzzing around some fruit, without touching the fruit itself.
Need to setup an event listener, generate random numbers and input them to a random impulse. It’s just the part of checking the distance between the fly and the fruit I need help with. I don’t want it to ever get between say 10-15 px. Also making it move around the whole pile not just one section.
[import]uid: 87611 topic_id: 14540 reply_id: 53772[/import]