Questions tagged [cinemachine]

Cinemachine is a packaged plugin for Unity3D, responsible for controlling all manner of camera settings, including blending between virtual cameras.

67 questions
1
vote
1 answer

Unity / Mirror - Is there a way to keep my camera independent from the player object's prefab after start?

I'm currently trying to create a multiplayer game using mirror! So far I've been successful in creating a lobby and set up a simple character model with a player locomotion script I've taken and learnt inside out from Sebastian Graves on YouTube…
King_H
  • 11
  • 2
1
vote
1 answer

Changing the Lens.OrthographicSize (Cinemachine) Value in Unity in a Script

so im very new to Unity. I make a 2D Plattformer and try to Zoom out when you Press 'Tab'. I like to change the OrthographicSize from my VirtualCamera via script, but cant figur out how.. any ideas? Camera follows the Player. Thanks in Advance!
Wolf
  • 11
  • 2
1
vote
2 answers

How to set vCam orthographic size relative to velocity?

I'm trying to make it so that when my player velocity increases, the virtual follow cam orthographic size increases and when the player velocity decreases, the orthographic size decreases. When I try this though, it doesn't scale smoothly, it…
1
vote
1 answer

cinemachine makes my camera movement laggy in unity

I'm curently using cinemachine to make a third person camera. My player's movements work and i wanted him to look in the direction he is moving but taking in consideration the rotation of the camera. It works when i don't move the camera while…
Dusk
  • 33
  • 1
  • 8
1
vote
1 answer

Unity2d Player off camera on Falling with Cinemachine

Currently I was trying to achieve a smooth transition and camera follow when the player was falling. But, When player falls it either goes : On Increased Y Damping -> Follow is Smooth, but player is off camera when falling On Increased Y Damping…
supernatural
  • 1,107
  • 11
  • 34
1
vote
1 answer

How to access the Tracked Object Offset in the Body of CinemachineVirtualCamera?

I'm new to Unity Cinemachine and I'm trying to change the y value of the Tracked Object Offset in the Body of CinemachineVirtualCamera using code. I read some articles for changing the value and what I currently have on my code is private…
Yuuu
  • 715
  • 1
  • 9
  • 32
1
vote
1 answer

How to create Unity3d Cinemachine 3rd person mobile swipe camera?

I have created a 3rd person freelook camera along with a player controller that takes input from the new input system action map, where it is from the left stick gamepad, jump and can look; thanks to a youtube tutorial. The camera is working great…
CodingNeeded
  • 111
  • 1
  • 10
1
vote
0 answers

unity cinemachine smoothPath issue

I have an issue when I'm using cinemachine smoothpath component, I can create Waypoints and select them, but the bezier handler is not displaying someone knows how to display It. BTW I'm using Unity 2019.4.22f1 and Cinemachine 2.6.3 Thanks in…
Apoxs
  • 11
  • 1
1
vote
0 answers

Unity Problem with Cinemachine when the Character is rotated

I am trying to implement a 3D, Third person character movement using a Rigidbody and Cinemachine. The character should be able to walk on the ground and ceiling, as well as on the walls (only left and right wall, when facing the positive X-Axis). I…
WBoe
  • 46
  • 2
  • 7
1
vote
1 answer

How do you fire off the Cinemachine Impulse source without using the Collision one?

How do properly call GenerateImpulse() to implement Cinemachine's camera ImpulseListener (camera shake) via the ImpulseSource? I can get it working if I put a CollisionImpuleSource on the player, but I don't want that. I want to use the Impulse…
Mastro
  • 1,477
  • 2
  • 22
  • 52
1
vote
1 answer

Unity Cinemachine: how can I store the current active virtual camera into a variable?

Basically I'd like to get the current live virtual camera and store it in a CinemachineVirtualCamera variable. public CinemachineBrain cine; public CinemachineVirtualCamera VirtualCamera; void Start() { VirtualCamera =…
Teolul
  • 21
  • 1
  • 4
1
vote
1 answer

How to lock the Y-axis for unity's Cinemachine?

I have a ball which we can throw here and there in my game. I want my cinemachine vcam to move only in the x direction with the ball. And just look up to the ball while its in air. I don't want the camera to move in y direction along it too. I have…
Dhruv Chadha
  • 1,161
  • 2
  • 11
  • 33
1
vote
0 answers

Cinemachine 2D isn't following after respawning the player

I was trying to make Cinemachine follow my player even after respawn, but it's not working and I honestly don't know what else to do. I don't want to make a new code for camera, because Cinemachine has a lot of good features. I was thinking that in…
1
vote
1 answer

Cinemachine Virtual Camera Transition between objects while keeping dead zone

3d game 2 game objects: A and B. (both spawned on runtime) I want to get a smooth transition from object A to B, but only if, the object B is outside vcam's dead zone. Vcam should look at the object with static rotation. (only the camera position…
sswwqqaa
  • 1,545
  • 3
  • 15
  • 29
1
vote
2 answers

Is there a ways for cinemachine to retarget player after it is destroyed and instantiated as a clone?

I am working on a 2D platformer and I am using cinemachine to follow my player. When a player drops off a platform under -20 y, the player is destroyed and instantiated as a clone to the spawn point as expected, but the camera is not following, as…
AOV Ezy
  • 55
  • 3
  • 10