Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 ScrappyCocco · Jan 05, 2015 at 09:05 PM · cameraplayerparentchildrenmain camera

Children don't move with parent

I have a main camera, parent of a eye in player's head... The movements are ok, but if my player crouch, the camera's position remain up and don't go down, but the eye move down and crouch with the player! What's the problem? Why the main camera don't move up and down? Help!

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 Owen-Reynolds · Jan 05, 2015 at 09:38 PM 0
Share

You say the camera is a parent of the eye (which means the eye is listed below the camera and a little indented.) That means the eye (child) follows the camera (parent), not the other way around.

Can you write the set-up (way it looks in Hierarchy) for camera and eye and player?

It's often better to not have the camera be a parent or child at all. It acts like a monkey wearing and helmet-cam, and jerks around too much. Ins$$anonymous$$d, the camera script can track the player using code, to get nicer smooth-ins.

avatar image bodec · Jan 05, 2015 at 10:10 PM 0
Share

this is guessing but it sounds like you are only animating a crouch not fully crouching when you crouch are you changing the scale on anything?

avatar image ScrappyCocco · Jan 06, 2015 at 03:56 PM 0
Share

First: the camera is child of eye... However yes the crouch is an animation, it's a big problem?

I have recently changed player's 3d model because this is $$anonymous$$e and before it isn't $$anonymous$$e, in the first 3d model i make camera child of head's bone and it work perfectly, but now if i do it the camera rotate so very strange so i tryed with the eye.. I need this.. alt text

errore.png (407.9 kB)
avatar image Berenger · Jan 06, 2015 at 05:01 PM 0
Share

Is there a script manipulating the camera's transform in your scene by any chance ?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by bodec · Jan 06, 2015 at 06:05 PM

Ok from everything that has been said the fix for your issue is to place a script on your camera. Have the camera through script follow your bone. the animation is just that a animation, if you look at your collider on the character you will see it doesn't change either. this is why the camera needs to follow the character through script. even if following is inside the character's head

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 ScrappyCocco · Jan 06, 2015 at 06:07 PM 0
Share

Ok a script inside the camera but what it have to do? What do you mean with "follow"? Help me xD

avatar image bodec · Jan 06, 2015 at 06:18 PM 0
Share

its a lot like the camera script that comes with unitys 3rd person controller it follows the character based on its transform. what it appears you would want is for you camera to follow at a much closer look. Open a new project and import the character controller scripts unity supplies create a plane and drop the 3rd person controller on the plane and press play and check it out that is basically what you want your camera to do but following closer to your character(inside the characters head).

avatar image ScrappyCocco · Jan 07, 2015 at 01:56 PM 0
Share

It seems to be very difficult lol there isn't an easiest way?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Need camera to follow player, but not the player's rotation. 13 Answers

moving objects relative to the player... 1 Answer

How to prevent a object (attached to the main camera) sticking into a wall? 0 Answers

Parent an object to the camera via script? 1 Answer

How do I have a Child tell a Parent to move without the Child itself moving 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