Ground or objects "stopping" gravity

Hello Everybody,
I need a little tip on using physics with cocos creator.
I havent find the way to stop the fall of an objet (except programmatically, which could be very fastidious while interacting with other objects - for exemple with a square falling on a circle or a complex form, how to obtain a natural movement? -) could someone help me please ?

on the picture bellow, the square has a rigidbody component set on dynamic and a collider component,
the “ground” has a rigidbody component set on static and have also a collider component.
The square is not stopped by the “ground”…

Any hint on where or what to search?

The solution was so trivial that I am ashamed of my question above… I only needed to use physicColliderComponent and not simple collider…

How did you make that square fall? I can’t make any object effect with gravity… Can you share that simple instructions?

Hi Ragav, the solution is here :


Best regards

Oh Thank you very much it worked

hi @jfgouhier

i’m new to cocos creator, also have the same problem

you mentiond physicColliderComponent

but i add to both platform and falling object

I tried a lot of settings, i still fail

please help me, thx

look at RigidBody parameter :

  • Type (dynamic, kinematic, static, …) => platform for example will probably be static

actually I made the same mistake

i have “falling ball” and “platform”
platform i use add “pyhsics component>collider>Box”
but falling ball with collider in the begining

and I mistakenly think that “add pyhsics component>collider” is just auto add rigidbody and collider
so i just patch another rigidbody to the falling ball

there are two different type collider

thx for replying