Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / [DarkPhysics & DarkAI] example: Patrolling enemies via DarkAI while keeping collision functionality in DarkPhysics

Author
Message
Alpha Mike
8
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: Bristol, UK
Posted: 5th Sep 2010 13:17
Hey!

This morning I was trying to get my enemies doing a patrol while still allowing me to do raycasting from DarkPhysics to find out if I'd shot them or not.

The problem I found that if I asked Dark AI to move the enemies my collision box from DarkPhysics didn't follow. I've managed to get both working in harmony so I thought I'd attach some example code in the hope that if someone else is having problems they can get over it quickly.

As ever there might be an easier way of doing this but that is the joy of programming

Alpha Mike

Attachments

Login to view attachments
gwheycs62egydws
9
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 8th Sep 2010 06:59
hi

I just found your post

at first all I saw was a blank screen

so I stopped it

ran the compiled exe
then decided to use the arrow keys

they do follow each other

I noticed one of them dos stops being the leader anther one
takes over and they follow that one

it's a got a lot of promise

I'm going to add more units and see what happens ;o)

Resourceful@shaw.ca

If a thought is Just a thought ~ so whats the main thought ?
LBFN
12
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 8th Sep 2010 16:58
This is pretty cool! Nicely done. Thanks for sharing.

So many games to code.......so little time.
leo877
11
Years of Service
User Offline
Joined: 6th Mar 2008
Location: san antonio, tx
Posted: 9th Sep 2010 09:12
alpha this is cool. wacthing cubes.


gwheycs62egydws
9
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 9th Sep 2010 09:43
umm it seems any more than 4 and they get stuck and never
follow the others

just a tiny thing

one thought I had was birds in flight
the flock in formation

a bit more complicated but similar when it comes to following

Resourceful@shaw.ca

If a thought is Just a thought ~ so whats the main thought ?

Login to post a reply

Server time is: 2019-06-20 10:45:39
Your offset time is: 2019-06-20 10:45:39