Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

is it safe to control Player Movement in OnStateUpdate() function ?

Discussion in 'Animation' started by MrZzzero, Jan 27, 2020.

  1. MrZzzero

    MrZzzero

    Joined:
    Dec 9, 2016
    Posts:
    67
    is using some physics like MoveTowards() or MovePosition() in OnStateUpdate() of animation State Machine Behaviour wont cause any problems ? is OnStateUpdate() act like Update() function or like FixedUpdate() ? is it safe for physics in general ?? and which one to use in it time.deltatime or time.fixeddeltatime ??
     
    alecfilios likes this.