Search Unity

Cinemachine2D gets 1 hiccup after player gets parents

Discussion in 'Cinemachine' started by beerandcheese, Sep 7, 2019.

  1. beerandcheese

    beerandcheese

    Joined:
    Jan 7, 2019
    Posts:
    2
    Hi, I'm a newbie and want to get an advice how to solve my problem. Thing is there's a 1 frame skip after a player jump into a circling platform which gets the player as a child. First I aimed at the "follow" of virtual camera. Everything was ok until the player's collider enters the circling platforms because I set the platform as a parent of the player. Anyone can give an opinion to get it through?

    Thanks


    this is the thing what it looks like
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,844
    It looks like the vcam gets reset. Are you giving the vcam a new follow target? Or are you just re-parenting the player?
     
  3. beerandcheese

    beerandcheese

    Joined:
    Jan 7, 2019
    Posts:
    2
    Thanks for the response. The vcam target gets player all time I mean just re-parenting. Anything more to tell?
     
    Last edited: Sep 8, 2019
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,844
    Hmmm it's not obvious why the vcam would reset if you're not changing its target.
    It might be something inside your script.
    Can you put together a small project that shoes this, perhaps with the same scripts but simple shapes?
    If you post it here or DM me I can take a look at it.