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.
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
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