Need help with CharacterController
Posted: Mon Nov 26, 2012 4:20 pm
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
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