Search found 564 matches
- Mon Feb 04, 2013 7:15 pm
- Forum: Flash
- Topic: A simple 3D graphics engine to combine with Box2D?
- Replies: 2
- Views: 2789
You can slightly notice the lack of 3d perspective on Emanuele's sample. anyway, for 3d rotation on a ball using 2d physics, x rotation is determined by the change in x position divided by the circumference. y rotation is determined by the change in y position divided by the circumference. z rotatio...
HelloWorld.fla should run w/o modification, is there currently a bug in the code? currently i get the following error. Location: ...Source\Box2D\Dynamics\b2World.as, Line 871 Description: 1046: Type was not found or was not a compile-time constant: b2Fixture. line 871 is: public function RayCastAll(...
- Sat Aug 20, 2011 3:46 pm
- Forum: General Discussion
- Topic: what is the difference between BeginContact/PreSolve
- Replies: 3
- Views: 2377
to expand upon the answer already given: PreSolve happens for objects which intend to collide and react (this excludes sensors). durring presolve you can calculate various details about the impending collision and even set the collision to false to allow them to pass through. begin contact happens f...
cannon.categoryBits = 0x0002 ragdoll.maskBits = 0x0001 (since the default categoryBits is 0x0001) the ragdolls mask bits will ignore the cannon, but still catch everything else (since the default maskBits is 0xFFFF *catch all*) the cannons will still collide with everything else. according to my san...
- Fri Jul 29, 2011 9:33 pm
- Forum: Bugs, Requests, and Feedback
- Topic: Why body not reflects after collision at low angle?
- Replies: 3
- Views: 2542
if i recall correctly very small forces are sometimes ignored for the sake of performance. this comes up in billiards simulations posts I've seen around. there is some core setting that you can change in box2d to address the issue, sadly i do not know which one. i hope that might point you in the ri...
i made a tester here if you want to throw some values in until you get what you are expecting.
Would the closest point on the wall to the bullet position be a good enough approximation?
yes that would be much closer than what i have now, which is using the bullet position. which is often the farthest part of the bullet from the wall (due to my reg point)