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

Question Integral Formula

Discussion in 'Scripting' started by Patrick_Rainer, May 19, 2020.

  1. Patrick_Rainer

    Patrick_Rainer

    Joined:
    Feb 26, 2018
    Posts:
    49
    Dear All

    Can somebody help me translate this formula to C#? I need the Arc length of a flying curve from an object.


    upload_2020-5-19_11-16-34.png
    Thanks for helping.
     
  2. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,556
    You first need to resolve the integral - which looks straightforward enough. C# has no provisions to resolve formulas (unlike Matlab or Mathematica).
     
  3. Patrick_Rainer

    Patrick_Rainer

    Joined:
    Feb 26, 2018
    Posts:
    49