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 GregoryNeal · May 06, 2015 at 02:07 AM · animationanimator

Using the animator to animate position?

Hi, I want to animate the position of an empty gameobject (that is childed to my player) based on certain actions my character could do (walking, jumping, etc). My plan is to animate the position and rotation of this empty gameobject then i can just child another gameobject to the empty and it will follow the animation as well. Im kind of new to the animator and animator controllers but I couldn't find anywhere in the animation window to animate local position.

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 SunnyChow · May 06, 2015 at 03:13 AM 0
Share

isn't easy to do and manage with program$$anonymous$$g ins$$anonymous$$d of animating?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by toddisarockstar · May 06, 2015 at 02:51 AM

this sounds like something that would be easier to create in blender or 3dmax or whatever modeling program you use. if your modeling program does not support an "empty object", simply delete the rendering component in unity after export so you cant see it. or you could even give it a transparent shader so you cant see it even though it is there.

Comment
Add comment · Show 2 · 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 GregoryNeal · May 06, 2015 at 04:27 AM 0
Share

I don't have a modeling program because I mostly work with sprites (i'm in no way an artist). What I'm trying to achieve is a way to attach any gameobject to my player in certain slots (like for weapons, accessories, etc). And these slots are just the empty gameobjects that follow my character around and have animations that match my characters. I want to be able to just child a gameobject to my character in these slots and have them be automatically animated because the slot is animated.

avatar image toddisarockstar · May 07, 2015 at 12:57 AM 0
Share

are you wanting the slots to simply follow at a fixed distance from the character? or are they following object parts? (like a hand or something). do the "slots" need any rotation?

sounds like its simply assigning parenting with script. maybe a long with using transform.point to asign a floating point. if i know jsut what you are doing i can give a quick code example to get you going.

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

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

Related Questions

2D Animation does not start 1 Answer

why I have to anim.getComponent in update() function when I had done in Start () function 2 Answers

Can the mecanim animators Controller var be set in code? 1 Answer

How can I create a home position where my character returns to after every animation? 0 Answers

Accessing AnimationState in Animator 0 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