I am trying to make an object move with doubel the speed to the Opposite direction off the gravity and it shows the right numbers in the Debug.Log but somehow the object does not move the oppositte way
(and yes i applied the code to the object)
Why are you dividing by 100? Remove the division. Also, you’re taking an acceleration value (gravity) and are applying it as a force, so now it’s mass-dependent. Multiply “negative” by _rigidbody.mass.
finally, instead of doing
Negative.x *= -1;
Negative.y *= -1
you can negate the vector as a whole. The corrected code: