• 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 nathanvj · Sep 04, 2013 at 05:49 PM · animationcameraplayeridle

I can't look up and down because of animation on camera?

I have made an idle animation for my main camera on the player. So if he doesn't run or walk that animation will play. But if that animation plays, the player can not look up and down (Y-ass)

My question: How to solve this? Or: Is there a way to look up and down WITH the animation playing?

Comment
Add comment · Show 3
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 Neurological · Sep 04, 2013 at 05:51 PM 0
Share

Is your camera a child of a bone? if yes maybe you should move the local position of the camera around the bone is childed too.

avatar image nathanvj · Sep 04, 2013 at 06:02 PM 0
Share

My camera is a child of Player.

Player contains 2 children: The Main Camera The Graphics

The animation component is on the main camera.

avatar image Serveladik · Oct 16, 2018 at 04:43 PM 0
Share

What excactlly did you change? I know that is old post but...

2 Replies

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

Answer by fherbst · Sep 04, 2013 at 06:20 PM

Put your camera rotation code into LateUpdate. Then it will run after the animation is applied. Make sure to only overwrite the parts of the position/rotation you actually want to be not animated.

Comment
Add comment · Show 7 · 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 nathanvj · Sep 04, 2013 at 06:55 PM 0
Share

You mean the MouseLook script? I used standart assets for that, and it's C#..

avatar image fherbst · Sep 04, 2013 at 06:57 PM 0
Share

I don't know what scripts you are using. I was just telling you that the order in which Unity processes stuff is "Update, animations, LateUpdate"; this means that you can overwrite animations in LateUpdate. The MouseLook script works in Update by default, so try changing that.

avatar image nathanvj · Sep 04, 2013 at 07:04 PM 0
Share

Thanks I will try it tommorow. Ill mark your answers as good but I'm not sure I'm gonna do it right.

avatar image nathanvj · Sep 07, 2013 at 10:10 PM 0
Share

It works! You simply are a genius sir!

avatar image deadlycrow · Feb 22, 2014 at 04:44 PM 0
Share

and how "late update" something in C#?

Show more comments
avatar image
0

Answer by Lolerz · Jun 19, 2017 at 03:06 PM

I am using the rigidbody fps controller in unity standard assets and i made a wallrun animation. The camera is supposed to rotate. I have chnaged update to lateupdate in the rigidbodyfpscontroller script and i can look up and down. But the camera doesnt rotate when i wallrun. Any solutions?,I know this is late. But how did you achieve this? Could you share?

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

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

Related Questions

Multiple Cars not working 1 Answer

One animation for two objects 0 Answers

activating a camera animation? 1 Answer

Camera Animation On Click Help? 1 Answer

Can you set up a camera to preview in at all times, even when moving objects around in 3D space? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges