Search Unity

[SOLVED]Change physics update to match animation style

Discussion in 'Physics' started by kFreezer, May 2, 2019.

  1. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    22
    Hi everyone,

    For our current film on unity project we'd like to have the hair physics to match the animation style that is set at 24fps on twos (every 2 frames there's an animation key)

    Is it possible to affect the physic and set it to update every 2 frames? I've done some research but I found mostly articles talking about slowing down time.

    Thanks

    [edit] when talking about hair physics, I'm talking about the physic applied to the bones with rigidbodies that drives the hair cards
     
    Last edited: May 2, 2019
  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    1,553
  3. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    22
    Ok thank you for the link! I tried the script and managed to slow down the physic of the scene2.
    I'm now investigating to have the update every 2 frames, I might take a while because I'm a real newbie when it comes to programming

    [edit] I went faster than expected, now I'm gonna try it with a more complex scene
    [edit1] The script was easy to rearrange to fit our needs, thanks again!!
     
    Last edited: May 2, 2019
    Edy likes this.