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 /
  • Help Room /
This question was closed Apr 07, 2017 at 09:41 AM by meat5000 for the following reason:

Broad and vague.

avatar image
0
Question by danielisawinner · Apr 05, 2017 at 12:42 PM · animationjavascripttriggerinteractive

I want my character to enter and exit car with animation

I really do not know how to do it, like I have the car enter and exit script works fine but I need an animation where the character opens the door sits and closes it same when he getting out. I can get the animation but how do make the character open the door , will a ray cast help in this place like a ray is send if so how do I make the door open and will it affect my enter exit script if so can I be guided.

Comment
Add comment · Show 1
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 meat5000 ♦ · Apr 07, 2017 at 09:39 AM 0
Share

Please do research before posting questions

https://www.google.co.uk/search?q=unity+enter+exit+car+animation&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs&gfe_rd=cr&ei=V17nW$$anonymous$$zGAaTP8AfEpayAAQ

https://www.google.co.uk/search?q=unity+answers+enter+exit+car&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs&gfe_rd=cr&ei=g17nWOiu$$anonymous$$6TP8AfEpayAAQ#channel=fs&q=unity+answers+enter+exit+car+animation

1 Reply

  • Sort: 
avatar image
0

Answer by shadowpuppet · Apr 05, 2017 at 07:22 PM

missing some details..if you already have it so the animation of character triggered to get in and out of your car - like it sounds like is the case - then you need to just trigger an animation of him opening the door and trigger the actual door opening as well and have the two animations triggered at the same time. Closing the door not so much a problem as the character can just put his hand on any part of the door to push it shut. However OPENING the door requires his hand be on the door handle and placement is tricky. First be sure the handle and the characters hand line up to begin with, then need to rotate the character and move him to specific coordinates to line him up with the door. Is the character the Player or another character? I have similar situations where the player pulls a switch. he needs to be lined up with the switch by having him move and rotate to a specific position, then trigger the switch handle and the player pulling the switch animations at the same time

Comment
Add comment · Show 1 · 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 danielisawinner · Apr 07, 2017 at 09:30 AM 0
Share
  1. I want my Character to play an animation of opening a car (which I got from mixamo).

  2. I want him to sit in the car well positioned.

  3. I want him to then enable the scripts of the car

  4. And then disable all his scripts and be able to drive the car.

  5. Then while exiting enable all his scripts and disable all the scripts of the car.

How do I do this? I mean I have the animations but how do I enable the scripts and how do I make my character remain in the car ( meaning I don't want the car to move somewhere else and my character is in the sitting position ?

I have my character set up just like in https://youtu.be/zcAthEp2578

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Check for collision while animating 0 Answers

Problems with using the same Animator Controller on multiple objects. 0 Answers

Mecanim animation playing once on button press 2 Answers

How do you trigger an animation with your Player? 1 Answer

Animation doesn't work 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