GithubHelp home page GithubHelp logo

Comments (4)

jgranick avatar jgranick commented on June 19, 2024

Eventually I am going to probably hide all the internal stuff. It's bad for parallels between the C++ and porting over. I just took a look, you're supposed to use circDef.setLocalPosition () instead of accessing m_p directly. Give it a try and let me know if that works for you

from box2d.

justnajm avatar justnajm commented on June 19, 2024

Great it works :)

Another problem within the same example, the last few line are:

for(body in m_bodies){
    m_controller.addBody(body);
}           
m_world.addController(m_controller);

last line hangs the example and do not show anything in flash player/browser(crashes). What I believe it may be due to the fix I did yesterday in haxe/lib/box2d/1,2,0/box2D/dynamics/controllers/B2BuoyancyController.hx

Without the fix it was throwing following error, "on line 95: Unexpected character ;"

/usr/lib/haxe/lib/box2d/1,2,0/box2D/dynamics/controllers/B2BuoyancyController.hx:95: characters 39-40 : Unexpected ;
/usr/lib/haxe/lib/box2d/1,2,0/box2D/dynamics/controllers/B2BuoyancyController.hx:95: characters 39-40 : Unexpected ;

I used, while on that line instead of "for loop":

while(i.nextBody)

Then the same error moved to line 109

I used, while on it:

while(fixture.getNext())

Then it moved to 137 and 146, there were semi-colons missing. So i added them...
I think i didn't fix it the right way :(

from box2d.

jgranick avatar jgranick commented on June 19, 2024

I just committed a round of fixes to fix Neko support, to improve the performance of the B2ShapeType enum as well as resolving the un-ported for() loops in B2BuoyancyController 😄

from box2d.

justnajm avatar justnajm commented on June 19, 2024

Thanks, it works like charm. Just had 2 semi-colon errors, fixed.

from box2d.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.