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 /
avatar image
0
Question by ungalyant2 · Aug 11, 2011 at 02:00 AM · cameracharactercontrollerjerky

Jerky Camera

Hi guys, so I've got a question for all y'all, I'm working on a dungeon crawler type of game, and I've made an extremely simple camera for it, which esentially just constantly updates to be 4 units above on the Y axis, and 2 units down on the Z axis and then using the lookat function to set the angle and rotation. However, whenever I move the character in a direction in which he is not already facing, the camera jerks and becomes offset in a direction dependant on which direction the character is facing, but I have no idea why this is happening.

If it's not something to do with the camera, I can only assume it's something to do with the character controller, but I've looked for hours and can't find anything that sticks out.

I've put a link to the project at the bottom of the question, it's only around 50mb, the camera is called CCAM in the C# folder, and the controller is LacunaCharacterController, in the Java folder, the controller was based on the lerpz tutorial 3rd Person controller.

http://www.megaupload.com/?d=ERFR7I16

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

2 Replies

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

Answer by sneftel · Aug 11, 2011 at 03:12 PM

It's not a problem with your camera, but with your character, which is not centered on its own pivot point (which is where the character controller moves from, regardless of where the collider is).

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 ungalyant2 · Aug 11, 2011 at 03:13 PM 0
Share

I thought that could be it, but I think the model had its pivot point centered, how can I check/change it?

avatar image sneftel · Aug 11, 2011 at 03:16 PM 0
Share

Take a look at the Z-position of your root bone in your animations. For an in-place run, that should be nearly zero.

avatar image ungalyant2 · Aug 11, 2011 at 05:17 PM 0
Share

Pardon my inexperience, but how and where would I find that? And if it's wrong, which I assume it is, do I change that in unity or in 3DS $$anonymous$$ax?

avatar image sneftel · Aug 11, 2011 at 05:32 PM 0
Share

3DS $$anonymous$$ax. This is an art assets issue, not a game issue.

avatar image ungalyant2 · Aug 15, 2011 at 02:52 AM 0
Share

After having been over this extensively with the 3D animator, it doesn't seem to be the root bone it doesn't seem, when I place the collider for instance, it's not only behind the character, but also below him, any other possible solutions?

Show more comments
avatar image
0

Answer by Meltdown · Aug 11, 2011 at 04:36 AM

Take a look at the SmoothFollow script, that comes with Unity. You can attach this script to your camera and adjust the height and rotation damping properties to get the desired effect that you want.

If that doesn't solve your needs I'd suggest looking at that script anyway to see how they have managed to get around any 'jerkiness'.

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 ungalyant2 · Aug 11, 2011 at 02:13 PM 0
Share

I tried that, but it doesn't help, all the cameras have the same problem, they get offset by a few units in the opposite direction to which the player is facing, can't work it out at all.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to make camera position relative to a specific target. 1 Answer

Multiplayer change of control script 0 Answers

CubeWorld Character Controller 0 Answers

Character Controller removes possibility of camera yaw? 0 Answers

player rotate to camera direction but not moving in it's direction 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