triangle solving system expression

This forum is currently in read-only mode.
From the Asset Store
Add this awesome sound effects to make your visual novel come to life!
  • i think it would be useful to have a system expression for solving triangles, just like we have them for lerp, qarp and cubic

    <img src="http://www.1728.com/trian4.gif">

    something for all sides, and something for all angles, would be best (the others arent really all that used)

    youd have something like SSStri(a,b,c,X) and AAAtri(A,B,C,x)

    x being A,B or C depending on what angle you want, or what side you want

    the formula for SSS is

    <img src="http://www.teacherschoice.com.au/Maths_Library/Trigonometry/solve_4.gif">

    and then you find the ACOS of that decimal number.

    you switch around ABC depending on what you need

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • In the number 4 case the calculated values would have to be relative. You could scale the entire triangle bigger and smaller and keep the same angles. So in that case you're not truly solving the triangle.

  • it would just return a value that you scale the triangle to

    something like X*60^2 or wtv.

    but SSS is all that id really need, might as well implement other things while theyre at it

  • Hmm, we have the sin and cos functions, I think it's not too hard knowing the formulae to come up with the correct calculation.

    Expressions like AAAtri look obscure and probably would make a lot of people just go "wtf". I think cubic interpolation is about the most complex math that should be built in, otherwise there's no knowing where to stop (plus interpolation is used loads in games). We could go on with integrals, differentiation, statistical analysis etc. but I think that ought to go in a plugin rather than the runtime.

  • yes you could use sin and cos, but for IK a simple SSS would open up IK for everyone to use easily. you said you didnt want to implement a new behaviour? so just implement SSS and it should make things very easy. im not doing this for myself, its just to help others who therwise wouldnt understand what to do.

  • i would happily create a math plugin, if only mingw was supported by the sdk...

  • I still think an IK Chain plugin should be made.

  • I still think an IK Chain plugin should be made.

    but ash said he wont be implementing anything big till 1.0, so that he can clear the bug tracker.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)