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 / How to make character controller?

Author
Message
Neomex
13
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 4th Jun 2010 19:03
Hello,
How to make character controller?
When I do something like this:

Nothing in-game is not happening, but after quit, I get "unhandled exception".
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Jun 2010 23:11
if you check out how its use in the SDK you'll find that the size of the object is a half of the main object, having said that why you are getting the above I don't know as I've not been able to get physX to run in VS yet.

I mainly use Darkbasic.

hopefully some else can give you better help.

Dark Physics makes any hot drink go cold.
Neomex
13
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 4th Jun 2010 23:32
As I saw few darkBasic samples it should be similar.
Something like this still doesn't work:
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Jun 2010 00:16 Edited at: 5th Jun 2010 00:30
removed see post below.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Jun 2010 00:30 Edited at: 5th Jun 2010 00:31
try this should help you get a bit further, added a base for the object to land on, as yours was in free fall.




Dark Physics makes any hot drink go cold.
Neomex
13
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 5th Jun 2010 00:31 Edited at: 5th Jun 2010 00:43
There already was background, just gived part of code. There's full one: (somewhere text formatting doesn't work, so it looks silly )


Image:
Neomex
13
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 5th Jun 2010 13:48 Edited at: 5th Jun 2010 13:53
Already solved one thing, now I can move character, but still I've got error when finishing game ( pressing ESC )



Code:


Dissasembly:

---
PS.
Oh, it isn't also moving other dynamic boxes, just stops near them, what looks like they're static.

Living for C++ programming!
Chiblue
14
Years of Service
User Offline
Joined: 6th Nov 2009
Location: NE PA, USA
Posted: 4th Jul 2010 19:19
I just read this, the reason you are getting the error when the code ends is because you are ending the physics engine but you still have the controller active... use the dbPhyDeleteCharacterController just before you perform the dbPhyEnd.

Login to post a reply

Server time is: 2024-04-19 22:28:43
Your offset time is: 2024-04-19 22:28:43