Search Unity

Surface of a function f(x,y,z)=constant

Discussion in 'Physics' started by Cartucho, Nov 26, 2014.

  1. Cartucho

    Cartucho

    Joined:
    Nov 26, 2014
    Posts:
    3
    Hy! I was trying to use Unity to make a Physic simulation.
    Is it possible to convert a mathematical function f(x,y,z) to a 3d surface?
    for example -0.5(x^2+y^2+z^2)-((1-0.5)/sqrt(0.5 +x^2+y^2+z^2))=1
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    There is no built-in solution for that.
     
  3. Cartucho

    Cartucho

    Joined:
    Nov 26, 2014
    Posts:
    3
    Thank you for the answer! So I can never make a surface from a formula?
     
  4. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    It is not a problem to make a surface at all, you just need to find a solution on your own about how you can turn the formula into a mesh. There is no built-in way for that.
     
    Cartucho likes this.
  5. alexzzzz

    alexzzzz

    Joined:
    Nov 20, 2010
    Posts:
    1,405