Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by Diego89 · May 14, 2013 at 07:35 PM · javascriptcharactercontrollerjumppush

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.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ExTheSea · May 14, 2013 at 07:36 PM 0
Share

You should post your code otherwise we can't help you.

avatar image Diego89 · May 14, 2013 at 08:54 PM 0
Share

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.

avatar image ExTheSea · May 15, 2013 at 04:56 PM 0
Share

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.

avatar image ExTheSea · May 17, 2013 at 04:10 PM 0
Share

Is your problem solved now? If so please accept the answer or close the question to mark it a solved.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges