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

Report as inappropriate.

danpost
danpost presents ...

2014/7/18

Box Collisions

An imperfect (but much closer than the original) demo of colliding rectangles.

2109 views / 12 in the last 7 days

1 vote | 0 in the last 7 days

Tags: simulation demo danpost source-text

This scenario is a member of: Demos by danpost


Your browser does not support the canvas tag.
lordhersheylordhershey

2014/7/23

What is the image that is getting drawn in the background?
danpostdanpost

2014/7/23

@lordhershey, the image came from my Kaleidoscope scenario at http://www.greenfoot.org/scenarios/4780. The settings used were as follows gravity: 1016 contortion: 1210 stretch: 832 fold: 10000 translation: 0 zoom: 46 distance: 40 x: 0 y: 0 background color: white (by way of code change)
danpostdanpost

2014/7/23

@lordhershey, sorry, the first two (gravity and contortion) should be negative values.
KartoffelbrotKartoffelbrot

2014/12/7

Very well made!
Roshan123Roshan123

2020/10/22

Why is it not opening??? I have been waiting since 8 minutes If u don't mind can u plz share the source code And the AddedtoWorld method worked successfully But now I want to improve my blocks collision Sometimes they go through the the blocks
danpostdanpost

2020/10/22

@Roshan123, it was uploaded a while ago (before transition to usage of javascript. I will update asap.
A new version of this scenario was uploaded on 2020-10-22 09:01:39 UTC
A new version of this scenario was uploaded on 2020-10-22 09:08:39 UTC
A new version of this scenario was uploaded on 2020-10-22 09:09:58 UTC
A new version of this scenario was uploaded on 2020-10-22 09:13:02 UTC

See all comments

Want to leave a comment? You must first log in.

Who likes this?

Kartoffelbrot