3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: A Lil Easier To Understand Pathfinder Demo  (Read 1518 times)

« on: August 18, 2011, 11:12:48 AM »
i just rearranged and renamed a few things so that the pathfinder object will be a lil easier to understand...

it's quite a powerful object for implementing semi intelligent hunters... ideal for a fps or other game where you need to track something down...

click below for a short youtube video...

http://www.youtube.com/watch?v=azNuQY2KsR4

click the attached project and copy to your 3DRAD projects folder and run... requires 7.21 or later...


--Mike

« Reply #1 on: August 18, 2011, 01:02:39 PM »
would the pathfinder work for car ai like a police chase in a airport so the police dodge buildings?
« Reply #2 on: August 18, 2011, 02:00:18 PM »
good question...

i really don't know at this point... my first guess would be no,  seeing as the current ai in pathfinder seems to go straight for the target, and if moving fast enough, will bump into obstacles...

and i've yet to see one of the pathfinder controlled bots back up and go in the opposite direction...


but... maybe that sorta behavior is tweakable in the properties...

--Mike
« Reply #3 on: August 18, 2011, 11:34:37 PM »
Quote
would the pathfinder work for car ai like a police chase in a airport so the police dodge buildings?

It is possible: "The PathFinder object is a guide for other objects that can move and follow 'targets' (like the Character object, the CarAI object or a user created script). The PathFinder object location is the goal to reach." (a quote from 'help').

psikoT

« Reply #4 on: August 19, 2011, 12:01:20 AM »
the problem with pathfinder IMHO is that only works relatively well with independent rigidbodies... if you make the whole level with just one RB (i.e. a maze) the pathfinder simply goes crazy...
« Reply #5 on: August 19, 2011, 09:00:41 AM »
true, true  ;D
« Reply #6 on: August 19, 2011, 09:41:07 AM »
Does the pathfinder respond to rigidbody imposters?
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #7 on: August 19, 2011, 10:14:42 AM »
that's a good question Roberto...

i tried to get it to work... but o far no go...

the problem is how to tell each imposter where to go...

--Mike
« Reply #8 on: August 19, 2011, 10:25:48 AM »
I tried it. And yes, PathFinder works with rigidbody imposters. It's not weird.
The PathFinder object works with scanners (as far as I know), scanners work on colliding objects and rigidbody imposters collide.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #9 on: August 19, 2011, 10:50:56 AM »
how did you get it to work?

what exactly did you do to get the imposters (which usually have their positions determined by iObjectImposerSet() ) to be directed by the pathfinder object... i mean, aren't their positions supposed to be independant of the master object...

also... how did you get the pathfinder to impart velocity to em...

i tried this... and i couldn't get it to work...

--Mike
« Last Edit: August 19, 2011, 12:27:13 PM by Mike Hense »
« Reply #10 on: August 19, 2011, 01:47:07 PM »
mike, im not sure, but i think he means rigidbody imposters as obstacles for the pathfinder object
« Reply #11 on: August 19, 2011, 02:53:10 PM »
I think I meant that to.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #12 on: August 19, 2011, 03:28:29 PM »
ahhh... ok, thx... didn't understand...


--Mike

Pages: [1]