@Greenhouse wrote:
How to achieve the following behavior:
Given a scene with physics world with gravity set to
{0.0f, 100.0f}
(going upward)
Given a node withPhysicsBody
(box), positioned at the bottom of the screen.As expected box starts to go upward with constantly increasing speed.
===== top ====
^ | BOX
=== bottom ===
It's almost what I need, but instead of constantly increasing speed, box should start with a maximal speed (caused by gravity) and go upward without speed's changed.
Posts: 2
Participants: 2