playMaker

Author Topic: Math Expression  (Read 3165 times)

mefihl

  • Playmaker Newbie
  • *
  • Posts: 3
Math Expression
« on: February 20, 2018, 12:22:43 PM »
Hi,
It would be great if a "Math Expression" was created, such as a Conditional Expression, with the difference that action would only return the result assigned to the variable

Thx

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Math Expression
« Reply #1 on: April 10, 2018, 04:19:47 AM »
+1

i'm working on something based on a code wich uses this:

Code: [Select]
m_Rigidbody.drag = (AirBrakes ? (m_OriginalDrag + extraDrag)*m_AirBrakesEffect : m_OriginalDrag + extraDrag);
and it's extremmelly confusing to convert it to playmaker actions without a simple Expression function.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Math Expression
« Reply #2 on: April 15, 2018, 12:22:56 PM »
There's a beta Math Expression action in this thread:
http://hutonggames.com/playmakerforum/index.php?topic=18385

It needs a little optimization, but worth playing with I think...