Tutorial/Example LiquiFun in CocosCreator

Hello everyone
I downloaded the release of LiquidFun 1.1.0 and imported as a plugin the file “liquidfun.js”(located at: liquidfun-1.1.0\liquidfun\Box2D\lfjs) in my Cocos Creator project .
I’ve been looking for some tutorial on how to use LiquidFun in CocosCreator but I haven’t found anything. Do you know any?
Thanks in advance

I don’t know of a specific JavaScript example with Cocos Creator, but I was reading this as I learn more Creator myself: http://www.jeffkillian.com/post.php?id=375

Thanks for the response, but I don’t know how to translate those examples to Cocos Creator

I have found this repo : https://rubygems.pkg.github.com/YaNoHimawari/fluid
If there is an error in this method: window.convertToPWorld = function(position){} (global.js)
change the function with this:

window.convertToPWorld = function(position){
let leftDownPos = position;
return new b2Vec2(leftDownPos.x/SCALE,leftDownPos.y/SCALE);
}

:hugs:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.