- Home /
How to make the CC(character controller) jump and push
hi,
I'm working on a project and I'm using the FPS character controller, I modified the code in order to make him able to push other objects, and the code works nice and easy. However now the CC is able to push but not able to jump any more, if I remove the push code is able to jump again, I need both the mechanics someone can help me?
I code in Javascript.
thank you.
Ops xD, you are right, however the code that I used is the one that can be found in http://docs.unity3d.com/Documentation/ScriptReference/CharacterController.OnControllerColliderHit.html
I just copied as it say, and it works for the push, but then I can not jump anymore.
First: please post replies as comments and not as answers. Second: i got the same behaviour when i tried it. I will look into it and give you an answer if i find one.
Is your problem solved now? If so please accept the answer or close the question to mark it a solved.
Answer by ExTheSea · May 15, 2013 at 05:11 PM
I already found a possible solution. If you don't mind about changing from the standard character motor+ FPSInputController to the FPSWalkerEnhanced.
I tried the FPSWalkerEnhanced you can get from here: http://wiki.unity3d.com/index.php?title=FPSWalkerEnhanced .
Then I just added the part from the link you posted in the OnControllerColliderHit and it worked. I was able to push rigidbody and still be able to jump. I think changing the Character Motor so that it works will be a bit difficult and if I'm honest i prefer to use the FPSWalkerEnhanced.
Hope it helps.
Your answer
Follow this Question
Related Questions
Translation of an object 2 Answers
character controller wont rise when I Jump :( 1 Answer
Character Controller Not Jumps Over Obstacles 0 Answers
How to make smooth jump? 1 Answer
Jump on button press. [JavaScript] 1 Answer