Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17091

How want to achieve the following behavior [Physics]

$
0
0

@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 with PhysicsBody (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

Read full topic


Viewing all articles
Browse latest Browse all 17091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>