Hi,
I'm trying to implement the CharacterController you have made into my game but I' like some help on this.
I've added BEPUphysics and BEPUphysicsDrawer to references and copied the "Character" map from BEPUphysicsDemos into my game (changed the namespace too). I have also replaced my Camera class with the one used in BEPUphysicsDemos.
Currently I am able to fly around using the Camera class and I can see the floor and walls I have made.
But when I change to Character mode using C, I'm suddenly unable to move or even fall untill i press C again to switch back to the camera.
I have done some debugging and something that I have noticed is that the Update() method of CharacterControllerInput.cs is used. But the Update() of CharacterController.cs or HorizontalMotionConstraint.cs is never used when i add a breakpoint in it.
My code for switching between camera and character is the same as the code used in the demo and I believe I've copied all the necessary code from BEPUphysicsDemos. Do you have any idea where the problem may lie?
If needed I could provide you with some more information or something, just ask.
Thanks in advance,
Webbie
Need help with CharacterController
Re: Need help with CharacterController
The symptoms sound like the CharacterController itself is not in the Space. I can't pinpoint where the problem might be remotely, but walk through any areas where the character is added/removed from the space to make sure everything is working as expected.
Another possibility is that the Space itself is not getting updated.
Another possibility is that the Space itself is not getting updated.
Re: Need help with CharacterController
The problem indeed was that the space itself was not getting updated. I thought i had copied everything from the BEPUphysicsDemo but I forgot to look in Demo.cs, hehe.
Thanks for the help, you're awesome.
Thanks for the help, you're awesome.