How do I make object floating using with physics

Get help using Construct 2

Post » Thu Dec 15, 2016 3:49 pm

Actually my question is how C2 physics engine really works. I'm trying to make an object floating in the air. My approach is applying upward force in the same value as the weight. I calculate the weight is object Mass times gravity acceleration. So i just applying a force in upward direction and theoretically the object should stay in the air because the total force upward and downward is zero. But the result i got is the object flying fast in upward direction. Anybody knows why this happen?
B
3
Posts: 3
Reputation: 181

Post » Thu Dec 15, 2016 4:06 pm

only apply the impulse one time, you event may be triggering everythick.

To maintain in the air, the easy ways is set gravity to 0 and stop it right after.
Image
B
104
S
23
G
17
Posts: 1,350
Reputation: 22,028

Post » Thu Dec 15, 2016 5:07 pm

Thanks for fast reply TELLES0808.
I don't want to use impulse. The output is different. Since physics object affected by gravity every tick so i want to reproduce the force upward so my object will not fall. Sorry i forgot to tell that i don't want to use zero gravity either. I want real world physics. Because later I will apply force from different direction too and the object will fall if there is no force upward. I make this post because i failed to do simple physics logic about neutralize vertical force.
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: alextro, Ryan Kocourek and 1 guest