Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
1
Question by OshakieGittens61 · Jun 13, 2016 at 06:08 AM · animationthird person controllerclimbingparkour

How to have a character climb an obsticle automatically?

Hey, so I'm making a thirdperson game in which my character is able to climb an height obsticle just by moving into it. This should kinda work similary liking scaling obstacles in mirrors edge or a parkour game. I already have downloaded some animations from MIXAMO but i dont know how to go about doing it. Anyhere here's my animation script:

 ![using UnityEngine;
 using System.Collections;
 
 public class ExoCtrlScript : MonoBehaviour {
 
     private Animator ExoThysius;
     // Use this for initialization
     void Start() {
         ExoThysius = GetComponent<Animator>();
     }
 
     // Update is called once per frame
     void Update() {
 
         ExoThysius.SetFloat("Vspeed", Input.GetAxis("Vertical"));
         ExoThysius.SetFloat("Hspeed", Input.GetAxis("Horizontal"));
 
 // TURNING
         if (Input.GetAxis("Horizontal")!=0)
         {
             ExoThysius.SetBool("Turning", true);
             if (Input.GetAxis("Horizontal") > 0)
             {
                 transform.Rotate(Vector3.up * Time.deltaTime * 100.0f);
                 
             } 
             //turn left
             if (Input.GetAxis("Horizontal") < 0)
             {
                 transform.Rotate(Vector3.down * Time.deltaTime * 100.0f);
           
             } //turn right
                
         }
         else
         {
             ExoThysius.SetBool("Turning", false);
         }
 
         if (Input.GetAxis("Vertical") != 0 && (Input.GetAxis("Horizontal")) > 0) // running and turning left
         {
             transform.Rotate(Vector3.up * Time.deltaTime * 100.0f);
             ExoThysius.SetBool("Turning", true);
         }
 
         if (Input.GetAxis("Vertical") != 0 && (Input.GetAxis("Horizontal")) < 0) // running and turning right
         {
             transform.Rotate(Vector3.down * Time.deltaTime * 100.0f);
             ExoThysius.SetBool("Turning", true);
         }
 
         if (Input.GetButtonDown("Jump"))
         {
             ExoThysius.SetBool("Jumping", true);
             Invoke("StopJumping", 0.1f);
         }
 
    
     }
     
     
     void StopJumping()
     {
         ExoThysius.SetBool("Jumping", false);
     }
 }][1]


[1]: /storage/temp/72044-scene2.png

scene-1.png (477.3 kB)
scene2.png (32.3 kB)
Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Abhiroop-Tandon · Jun 13, 2016 at 08:45 AM

The way i will deal with your problem will be to already have an animation of the player climbing the top of the obstacle, have a trigger near the obstacle and play the animation when you hit the trigger. I hope i make sense !!

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
avatar image
0

Answer by AnimationBandit · Sep 11, 2016 at 04:37 AM

You may find this animation pack helpful for developing your climbing system. It contains a 360 degree blended array of animation for climbing in any direction, as well as many other ledge and parkour actions.

Link to asset: http://u3d.as/xui

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
avatar image
0

Answer by jonnytracker · Jun 23, 2020 at 09:30 PM

.. mixamo root motion is hip... Unity expect root bone to be on ground So i have a problem too with the same subject in 2020 .

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

6 People are following this question.

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

Related Questions

Can I make animations snap to a frame? 1 Answer

using sample assets beta, how to add animation to the third person character? 1 Answer

Character teleporting back to origin point when using looped animations 1 Answer

How to animate for object interaction? 1 Answer

What's better to do sprinting and parkour animations in, unity 3d or blender? 2 Answers


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