Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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 vit3z · Jun 09, 2021 at 01:26 PM · 2d-platformercamera-movement

[RESOLVED] Cinemachine Framing Transposer acts differently on different devices

I'm making a 2D game and I'm using Cinemachine's Framing Transposer (Cinemachine Brain on the camera itself, and an object with the Cinemaching Virtual Camera that uses the original camera and follows the Player object)

I've also added 2 custom scripts to the virtual camera object.

One that shakes the camera should the Player get hit, and another that moves the camera left-right depending on the way the Player is facing.

I've asked a couple of friends to try the game out, to see if there are any bugs, and there seems to be some weird camera behaviour (among other things) for one of my friends.

The camera moves very sharply without even using the mouse, making the game unplayable.

The way it works for my friend: https://www.dropbox.com/s/44xmha1cyi9myn9/Camera_Weird_Behaviour.mp4?dl=0

The way it works for me: https://www.dropbox.com/s/ft7lf0rfetgynez/Camera_Normal_Behaviour.mp4?dl=0

I've tried investigating why this occurs, but for the life of me I can't figure it out.

If it'll help, this is the camera move script:

 > private void FixedUpdate() {
 >             if(playerControllerReference != null)
 > {
 >                 if(playerControllerReference.isFacingLeft)
 > {
 >                     if(framingTransposerComp.m_ScreenX <
 > 0.6f) {
 >                         framingTransposerComp.m_ScreenX +=
 > 0.008f;
 >                     }
 >                 } else {
 >                     if(framingTransposerComp.m_ScreenX >
 > 0.3f) {
 >                         framingTransposerComp.m_ScreenX -=
 > 0.008f;
 >                     }
 >                 }
 >             }
 >         }

I'm also attaching the gameObject setups for both the camera and virtual cameraalt text

Any help would be greatly appreciated.

cinemachine.png (63.0 kB)
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

1 Reply

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

Answer by vit3z · Jun 11, 2021 at 02:02 PM

I was able to resolve this by simply updating Cinemachine to latest version (I was running a pretty old version it seems)

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.

Follow this Question

Answers Answers and Comments

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

Related Questions

Camera Movement and Zooming limit, 2 Answers

Parallax displacement after changing "frame/view" 1 Answer

2D Cinemachine with Lookahead time respawn problem 4 Answers

Cinemachine camera shake on button press 0 Answers

camera problem 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