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: Problems with pathfinder to create enemies.  (Read 286 times)

« on: April 28, 2014, 11:37:37 PM »
Hola como est�n usuarios de 3D Rad, tengo problemas con el pathfinder, ya que quiero crear un enemigo de skinmesh que me persiga a una c�mara en primera persona, ya se que en 3D Rad hay un demo llamado SimplePathFinderEng funciona con el terreno predefinido, pero si lo usas con un terreno rigidbody no funciona, tambien he usado el zombie test pero usa dos skinmesh y dos rigidbody, quisiera saber si me pueden enviar uno que sea bien sencillo y que funcione en terreno de rigidbody, mi correo= [email protected], saludos -TheHades24


Hello users of 3D Rad, I have problems with the pathfinder, I want to create an enemy skinmesh pursuing that me to a first-person camera, I know 3D Rad has demo called SimplePathFinderEng  works with the default terrain, but if you use a rigidbody terrain does not work, I've also used the  zombie test  but uses two skinmesh and two rigidbody, I wonder if I can post one that is very simple and operate in terrain rigidbody, my email =  [email protected] Greetings-TheHades24
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
« Reply #1 on: April 29, 2014, 08:32:32 AM »
it does work with custom RB terrains... make sure all the necessary objects are linked to the terrain, and the right properties settings are selected...

the custom RB terrain has to be linked to:
1- the character object ------------ set Relationship Property to TerrainRigidbody
2- the character:rigidbody object ---
3- the pathfinder object ----------- set Relationship Property to Obstacle
4- the goal finder script

you can test the validity of your terrain by running the PathfinderDemoV7 project and replacing the default terrain with your own... just disable (not active) the default terrain and add your own... then make the link and set the properties (use the existing deactivated default terrain as your guide)...

--Mike
« Reply #2 on: April 29, 2014, 08:59:22 AM »
Thanks Mike, I do have tried creating the terrain and change the links the original terrain to mine, but when I run, the character stays in one place and not chasing me, I would like you to do it with rigidbody plane (shown 3D Rad) and you sent it to me my mail, I appreciate - Thehades24
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
« Reply #3 on: April 29, 2014, 09:25:17 AM »
Hi again Mike, I when I get home I will try to do so, modifies the SimplePathFinderEng, I will substitute the original terrain by the rigidbody plane and I will change links and deactivate the original terrain, and run the demo, if I can not, send my demo amended for your review, Greetings TheHades24
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
« Reply #4 on: April 30, 2014, 11:58:25 AM »
i really won't have time to be testing and fixing stuff... so don't send me your project, i can't fix it for you... sorry...

the pathfinder works with rb terrains... you just have to take time and make sure your links and properties are set as required...

--Mike

« Reply #5 on: May 01, 2014, 03:53:02 AM »
Hi TheHades24, From my experience you need to have separate rigidBodys for obstacles in your game.

Let me explain, the terrain can be one of the default type or rigidBody (like Mike said). But the Obstacles must be separate rigidBodys, one for each building or tree. They work best if they are closed hull mesh.

I did a 3 story castle once using a single mesh for the rigidbody and it would not work at all, stalled the computer. It will work well if you do as I have suggested. I did a shooter this way and it work well even though I didn't finish it mainly it wasn't that good. You can download it from my website below.

n_iron
« Reply #6 on: May 01, 2014, 05:53:30 PM »
Hello Mike and n_iron, thanks for your answers, I achieved resolve the problem, I'm just starting out and have a game idea in mind, but first wanted to learn certain things 3D Rad, here I leave a demo on the pathfinder on such as an enemy chasing, just enough, I will try to learn other things, anything put another topic, regards.
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
« Reply #7 on: May 01, 2014, 06:33:12 PM »
ja ja ja, I was writing and translating, I forget attach the file mentioned, now here's greetings. 8)
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
« Reply #8 on: May 02, 2014, 08:16:39 PM »
Hi TheHades24 Here is a more complex scene and it shows the abilities and short comings of the Pathfinder object.

n_iron

« Reply #9 on: May 02, 2014, 08:41:09 PM »
hello n_iron, thanks for your answer,i already resolved the pathfinder, I have a question, I'm sure you already is answered, so I will not habrir a new topic, to shoot a projectile to the skinmesh (of enemy) is detected for run event (lower life monster) that is, to cause damage, I think I've heard that with the scanner, but I'm not sure, to recommend me topic or demo or advice, greetings.
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
Pages: [1]