Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: bizilux on July 05, 2014, 10:49:24 AM

Title: [SOLVED] How to change float sign. from + to -, and from - to +
Post by: bizilux on July 05, 2014, 10:49:24 AM
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
Title: Re: How to change float sign. from + to -, and from - to +
Post by: bizilux 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 :)