Search found 564 matches

by sketchbookgames
Mon Feb 04, 2013 7:15 pm
Forum: Flash
Topic: A simple 3D graphics engine to combine with Box2D?
Replies: 2
Views: 2789

Re: A simple 3D graphics engine to combine with Box2D?

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...
by sketchbookgames
Mon Jan 30, 2012 7:15 pm
Forum: Flash
Topic: HelloWorld
Replies: 4
Views: 7186

Re: HelloWorld

many thanks jayther.
for your clear and accurate answer.
by sketchbookgames
Sun Jan 29, 2012 12:21 pm
Forum: Flash
Topic: HelloWorld
Replies: 4
Views: 7186

HelloWorld

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(...
by sketchbookgames
Sat Aug 20, 2011 3:46 pm
Forum: General Discussion
Topic: what is the difference between BeginContact/PreSolve
Replies: 3
Views: 2377

Re: what is the difference between BeginContact/PreSolve

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...
by sketchbookgames
Wed Aug 17, 2011 1:30 pm
Forum: General Discussion
Topic: 2D physics editor
Replies: 4
Views: 1552

Re: 2D physics editor

what language? if you are using the Flash IDE with Flash CS4 or later you can layout your levels on the stage using WCK.
by sketchbookgames
Wed Aug 10, 2011 8:19 am
Forum: WCK
Topic: point of impact
Replies: 4
Views: 1786

Re: point of impact

ah, not using sensors would probably do the trick, thanks mayobutter! i will try that.
by sketchbookgames
Mon Aug 01, 2011 10:26 am
Forum: General Discussion
Topic: Maskbits Help
Replies: 5
Views: 1314

Re: Maskbits Help

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

Re: Why body not reflects after collision at low angle?

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...
by sketchbookgames
Thu Jul 28, 2011 8:24 pm
Forum: General Discussion
Topic: Maskbits Help
Replies: 5
Views: 1314

Re: Maskbits Help

i made a tester here if you want to throw some values in until you get what you are expecting.
http://www.box2d.org/forum/viewtopic.php?f=20&t=6616&p=29767#p29767
by sketchbookgames
Fri Jul 22, 2011 8:44 am
Forum: WCK
Topic: point of impact
Replies: 4
Views: 1786

Re: point of impact

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)

Go to advanced search