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

What RotateTowards's maxMagnitudeDelta about?

Discussion in 'Scripting' started by leegod, Jan 8, 2015.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,345
    I am using at unity docs, Vector3.RotateTowards for rotate my character and go to target location.

    and very headache about what is maxMagnitudeDelta's float value mean? radian? or angle?

    if maxMagnitudeDelta = 1.0f, How this affect about what amount?

    Thanks.
     
  2. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
  3. aaronfjerstad

    aaronfjerstad

    Joined:
    Oct 26, 2017
    Posts:
    2
    Prime624 likes this.
  4. fire7side

    fire7side

    Joined:
    Oct 15, 2012
    Posts:
    1,819
  5. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190