Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

[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:
    29
    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:
    2,428
  3. kFreezer

    kFreezer

    Joined:
    Mar 15, 2019
    Posts:
    29
    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.