This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Physics2

Return to Physics2

SPowerSPower

2012/11/7

The box keeps balancing on one of its edges.
SPowerSPower

2012/11/7

Sorry, forgot to really read your description :) You might look at the box2d engine, to improve your own.
MatheMagicianMatheMagician

2012/11/7

Thanks for the suggestion slower, but part of the fun to me is that I am doing this all from scratch, save for a bit of code borrowed from nccb to rotate the edges of the blocks.
MatheMagicianMatheMagician

2012/11/7

Oops, sorry. I know you are spower, my autocorrect did that.
A new version of this scenario was uploaded on Wed Nov 07 17:06:27 UTC 2012 Fixed the bug:)
SPowerSPower

2012/11/7

@MatheMagician I understand, sometimes I write something and later read it back and think 'shit, autocorrect!!!' ;)
SpilliSpilli

2012/11/7

The boxes seem a bit twitchy.
MatheMagicianMatheMagician

2012/11/7

Yes, Spilli, they are a tad "twitchy" when they have hit the ground. Again, though, this is an easy fix.
A new version of this scenario was uploaded on Wed Nov 07 20:27:09 UTC 2012 Less twitchy.
jrlowejrlowe

2012/12/30

If you place a box on a corner ov another one, it keeps spinning and does not fall
MatheMagicianMatheMagician

2012/12/30

Yes Jrlowe, there are some bugs with boxes where the corners hit. I am not too worried about it though, since boxes can't intersect in real life. I might do something to stop the boxes from hitting like that though.
nooby123nooby123

2012/12/30

Also, I suggest creating an offset according to the angle the box hits the ground. For example, if the box is at a 45 degrees angle, it should be slightly above the ground than if it hits the ground at a 90 degrees angle.
jrlowejrlowe

2013/1/5

Im just curious, but how old are you and what grade are you in because this stuff requires serious math that i have no clue about.
A new version of this scenario was uploaded on Tue Apr 16 12:37:52 UTC 2013 Made some improvements