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 / Charactor controller with enemy

Author
Message
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 17th Feb 2009 07:22
I'm trying to get my enemy to use charactor controller. It's seems to be working but now the enemy walks around hovering in the air. Can't get gravity to work on him. Has anyone used this with success? If so, PLEASE show the code.

Here's what I tried to do



?..?..?..?
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 17th Feb 2009 07:23
Oh by the way, I'm using AI with this, so I'm not sure if there's something I need to do concerning that.

?..?..?..?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 17th Feb 2009 09:46
lookup skin width, this might help, as charactor controller has a rounded top and bottom. check in debugger to see whats going on.

Dark Physics makes any hot drink go cold.
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 17th Feb 2009 17:51
HowDo I already set that at the beginning so none of my dynamic objects would sink through the mesh.





The program seems to be working fine. AI is what is being used to move the enemy. Could this have something to do with it? I update AI before phy as I'm supposed to.

?..?..?..?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 17th Feb 2009 19:32
just checking.

1. we know that AI cannot move the Y direction.

2. get entity position is put in phy position.

PHY MAKE BOX CHARACTER CONTROLLER ID, x#, y#, z#, size x#, size y#, size z#, up, step#, slope limit#

check the y# 's in this command one of them is to high.

Dark Physics makes any hot drink go cold.
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 18th Feb 2009 00:54
This is what I have it set to in the beginning.



Should I use something during the course of the loop? If, so how would I do it?

?..?..?..?
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 18th Feb 2009 03:16
I was curious if anyone knew of any tutorials regarding AI and DP out there? That would be so helpful if there was.

?..?..?..?
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 18th Feb 2009 04:00
I set the object up with this



and I'm running this in the program but now I don't even see the object anymore



?..?..?..?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 18th Feb 2009 11:15 Edited at: 18th Feb 2009 11:31
@GALACTUS

This may not solve the problem you have at the moment, however reading the SDK it seems that box character is not in favour as much as the capsule character, so I would change it to that one.

here what I see on our controls.
in Box

In capsule this one does the same but only has nine variables to fill in



Edit
if you have make your object with make object box id,20,50,20
for box

for capsule


Dark Physics makes any hot drink go cold.
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 18th Feb 2009 16:44
Thanks HowDo, it didn't work. Have you tried this using kinematics? The documentation and Mike Johnson said this is the way to go but I haven't figured it out yet.

?..?..?..?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 18th Feb 2009 17:07
if your not all ready doing it, I would make a simple demo, with charactor controller, floor and some AI then get them to do what is you want in the main game then just move it over when you find it.

The physX stuff I am ok on,how ever the AI I am still bit rusty on using.

what do you see if you have AI debug going.

Dark Physics makes any hot drink go cold.
GALACTUS
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location:
Posted: 18th Feb 2009 17:31
Quote: "I would make a simple demo, with charactor controller, floor and some AI then get them to do what is you want in the main game then just move it over when you find it"


It's funny you say that. I am trying to make a simple 3rd person shooter game right now. I really want to include this in it though. This is the only thing holding me up. I don't understand what you meant by move it over when you find it. I've used CC but because AI only deals with X\Z somehow the Y affects my charactor in a way to where it just hovers around.

When I try it in debug mode windows tells me that it had to shut the program down. I'm running xp 64bit I wasn't sure if DBPro doesn't like that or not.

I tell you, when I finish this thing, I'm going to make this as a tutorial for the newcomers so they don't have to go through this.

?..?..?..?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 18th Feb 2009 17:52
well you'll be the expert on AI moving in PhysX when you get it going.

'moving over' code form the test demo to the main project.


just me, I find UDT's every hard to read when posted, only because they are holding invisible numbers.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-05-23 12:50:37
Your offset time is: 2024-05-23 12:50:37