playMaker

Author Topic: [SOLVED] How to change float sign. from + to -, and from - to +  (Read 2150 times)

bizilux

  • Full Member
  • ***
  • Posts: 171
simple question, but cant find answer...

i could only find float abs action, but thats not exactly it... because i also need positive float values to go into negative float values...

im trying to get rotations per second, for car wheel, and im using Angular Velocity. but when car is going forward, angular velocity is negative, and when car is going backwards, angular velocity is positive, so i need to reverse this float value, to have any use of it...

thanks
« Last Edit: July 05, 2014, 10:52:52 AM by bizilux »

bizilux

  • Full Member
  • ***
  • Posts: 171
Re: How to change float sign. from + to -, and from - to +
« Reply #1 on: July 05, 2014, 10:51:12 AM »
ah stupid me. i can just multiply it by -1

gosh... :D

i will leave topic, in case someone else will be searching for this, 10 years from now :)
« Last Edit: July 05, 2014, 10:53:28 AM by bizilux »