Comments (4)
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.
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.
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.
Thanks, it works like charm. Just had 2 semi-colon errors, fixed.
from box2d.
Related Issues (18)
- Default value of B2Mat22 is probably wrong HOT 1
- Needed fix for benchmark HOT 2
- Mass / density changes, doesn't change the way gravity interacts with a body HOT 2
- Can't edit contacts! (box2dflash 2.1a was outdated, broken, incomplete) HOT 2
- B2Fixture.setFilterData has wrong condition return HOT 1
- Calling B2Body::SetLinearVelocity / SetAngularVelocity should awaken body
- Remove dependency on Flash HOT 2
- DebugDraw: vector (box) shapes line to world pos 0,0 instead of closing
- Std.is is deprecated
- Can she used in heaps?
- Sir Plz attach documentation
- LiquidFun integration
- B2Body.applyAngularImpulse is missing
- Too low performance on mobile platform
- Compilation fails on neko HOT 4
- B2Body.ApplyForce and .ApplyImpulse don't behave as expected HOT 1
- body.setFixedRotation cause error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from box2d.