cocos2d-x physics nodes slide along other

I am developing a game using cocos2d-x with built-in physics engine. In this game, user try to put object as stack and keep them balance.

However, i got a problem when i try to put an object on other one, it makes two objects slide along each other

I tried set friction value but nothing changes. I noticed that when i put a dynamic object on a non-dynamic object it’s fine but when i put a dynamic object on other dynamic object, the problem (sliding along) will be happened.

I also create a gif demonstrate my problem because of my bad English.

I would appreciate any help!

After couple of days, i decided stop using built-in physics engine in cocos2d-x and start using box2d. Everything is fine, now.

1 Like