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 /
avatar image
0
Question by MC HALO · Aug 18, 2012 at 07:09 AM · jumping object

Jump over object help

Hell all i was wondering if someone could help me i want to implement jumping over object in my game like free runners do. Now i made a animation in maya just on a cube to test something basically the cube was in 0,0,0 axis in maya and the animation starts on axis 0 then the cube is animated to move forward and that move the axis. Now when i exported the cube into unity and played the animation the cube jump worked but every time the cube would end up in the center. This was just a test keep in mind now i want to know how they made there player jump over a object in there game. Here is the link :

http://www.youtube.com/watch?v=xYgECwRDIgE

watch from 2:12 and on

i would be great full if someone could help me thanks

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

1 Reply

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

Answer by ScroodgeM · Aug 18, 2012 at 08:59 PM

best way is to make animation always centered and move object in unity with animation playing. you can't be sure in jump height and length on animate stage.

after you did the animation, you can use simple first person controller prefab from unity and atach animated model to it to see how it works

Comment
Add comment · Show 3 · 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 MC HALO · Aug 19, 2012 at 09:15 AM 0
Share

how do i do that ? how can i make it move forward while the animation is playing and thanks for the reply :)

avatar image ScroodgeM · Aug 19, 2012 at 01:44 PM 0
Share

every object has it's zero-point, also known as pivot. in unity it showed when object selected.

all animations are played around this pivot. so, if your animation is 'jump 2 meters up' around this point, object will jump 2 meters up on animation play, but pivot will stay at initial position.

also, pivot can be moved. it this case animation will apply all pivot moves/rotates. it means if you move pivot 2 meters forward, animation will move object relative to this pivot 2 meters up. and totally your object will move forward and up to 2 meters each.

now, your task is: - move object - animate object

you should move object in unity to interact with scene. to stop before walls. to fall through holes etc.

and now it's clear that animation should not move object. if we for example animate a jump of player where it moves 2 meters forward, we can jump through the wall that was 1 meter in front of us. unity will still think that player stays in front of wall, but animation will be in another place.

so, choose a point of character (usually this is pelvis) and animate character so it's pelvis will always stay at point. then, animated character use in unity. see third person controller example for details.

avatar image MC HALO · Aug 19, 2012 at 03:52 PM 0
Share

that's a really smart answer :) i will give that a try for now i am marking this as the correct answer :) thanks so much :)

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

9 People are following this question.

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

Related Questions

How to keep going forward while jumping ? 1 Answer

Jumping player at platform connection 2 Answers

my jump key works about once every 10 presses 1 Answer

jump and check ground problem! 2 Answers

Plese help me. I want clicked object to jump . not all game objects and prefabs. i tried using raycast. its 2d game. plese correct my code. 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