cocos / cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
https://www.cocos.com/en/creator
Other
6.81k stars 1.77k forks source link

Liquidfun is built-in engine, but no public API found. #11220

Open dogking18 opened 2 years ago

dogking18 commented 2 years ago

Use Case

I'm working hard at a physics game. use built-in library liquidfun to create water. but no API found, is very difficult to use.

Problem Description

liquidfun is an extension of box2d, add a particle system into box2d. The Library was already in cocos-engine. but no public API about it.

Proposed Solution

Design a new class of the cc.ParticleBody. This class for create and control liquid/soft-body/physical particles, should be able to control each particle.

This class required provides some callback: onBeginContact onEndContact onPreSolve onPostSolve

How it works

No response

Alternatives Considered

good luck, cocos

Additional Information

QQ 309563528 website: https://naogua.ren

SantyWang commented 2 years ago

Thanks for reply, Please consider it @lealzhan

lealzhan commented 1 year ago

https://google.github.io/liquidfun/