Cube Flying Upwards when it should fall down!,Cube flying upwards when gravity should be happening! Help!
So when I start my game, my cube flies up instead of falling like gravity. I have gravity in place and all of my input as well. I think I have made just a tiny mistake but I need a keen eye to spot it. Thank you for helping -A Confused Coder
,So every time I press go my cube flies upwards. I have a gravity and floor and all code should be in order. I'm guessing something small happened and I just need a keen eye to help out. Thank you, the code is attached in the question. -A Confused Coder
first.png
(26.4 kB)
second.png
(11.5 kB)
Comment
Answer by Priyanka-Rajwanshi · Jul 06, 2018 at 12:46 PM
@DerpTrain The third if condition in your Update function has been terminated by a semicolon(;) in the end. Thus, the object is getting an upword force in Update irrespective of any condition.