Page 1 of 1

Character Controller

Posted: Sun Jun 26, 2011 1:52 am
by CashCache
Hello,

I am just getting started with 3D programming and have "graduated" to the point where it's time to start adding physics. I've played around with the library and really like what I've seen so far. Most of what I have tried has been pretty self-explanatory and I really like how object oriented things seem to be.

I'm at the point where I want to implement a very simple Character Controller. My thought was to create a capsule and use it as my entity. As I started doing some research on what needs to go into a character controller, I found posts in this forum that talked about a SimpleCharacterController and a more full-featured CharacterController. Are these classes available in the source code, or were they included in a demo? I've searched, but I can't find them anywhere. Also, I'd love to see a demo using a simple character controller to get an idea of what's involved. I do plan to write mine from scratch so I understand all the bits that make it work, but having a guid will be very helpful.

So far this has been a great experience for me. I'm doing all the coding (20 years experience) and my two boys (teenagers) are creating 3D models and story line ideas. Not sure where it will end up, but the journey sure has been fun!

Thanks,

-Scott

Re: Character Controller

Posted: Sun Jun 26, 2011 2:07 am
by Norbo
The SimpleCharacterController and CharacterController source code can be found in the BEPUphysicsDemos project which is in the main BEPUphysics source code download here: http://bepuphysics.codeplex.com/SourceC ... changesets

When running the demos, pressing "C" will activate character mode and allow you to walk around.

By default, the CharacterController is used in the demos. The main difference between the two types is that the CharacterController uses a convex cast to find supports, whereas the SimpleCharacterController uses a single ray cast (and is a bit... simpler :)).

There's also another character controller design coming in the next few weeks. It'll be more robust than the current CharacterController.

I also made a fairly brief/shallow lecture partially about character controllers a while back, which can be found in the documentation section on codeplex: http://download.codeplex.com/Project/Do ... dId=217297. It's in the PhysicsLecture.ppt.
So far this has been a great experience for me. I'm doing all the coding (20 years experience) and my two boys (teenagers) are creating 3D models and story line ideas. Not sure where it will end up, but the journey sure has been fun!
I wish you all good luck and continued fun :)

Re: Character Controller

Posted: Sun Jun 26, 2011 4:33 am
by CashCache
Thanks for the links, Norbo. By the way, your Lecture notes were a big help. I was hoping to find a high-level overview of just what actions a character controller should be responsible for and your slides did just that. My first attempt will be to understand your SimpleCharacterController and go from there.

I downloaded the docs, but I'm unable to view the content. I can see the index and drill down from there, but the actual content of each section is blank. I did not spend much time on it yet, so it may just be something with my computer, but you may want to double check that it's working correctly for you.

Thanks, for the pointers, and expect to see me in your forum for quite some time :D

-Scott

Re: Character Controller

Posted: Sun Jun 26, 2011 4:38 am
by Norbo
If you're referring to the .chm API, Windows blocks foreign .chm's by default as a protective measure. To unblock it, right click on it, go to properties, and at the bottom-ish there should be an Unblock button.

Re: Character Controller

Posted: Sun Jun 26, 2011 4:43 am
by CashCache
That was the problem. Thank you.