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

Report as inappropriate.

shrucis1 presents ...


Velocity Tests

It's still an experiment, so don't expect it to be bug-free.

I made it for the purpose of playing around with different methods of 'energy' transfer.

C - clear screen of all Rubbish particles
R - randomly place some Rubbish particles
E - creates a cube of rubbish particles (glitchy)

How it works:
There is a MouseActor that follows your mouse and constantly releases 'VelocityPieces' these velocity pieces are invisible, along with the MouseActor. However, when a velocity piece hits a rubbish particle, it 'transfers' its 'energy' onto the rubbish. The conversion is from polar velocity (Angle, Magnitude) to cartesian velocity (xVelocity, yVelocity)

It's also fun to just mess around with.

1566 views / 14 in the last 7 days

3 votes | 0 in the last 7 days

Tags: mouse simulation physics with-source

open in greenfoot
Your browser does not support the canvas tag.


Nice! The particles keep clumping to the right side of the screen for some reason though...


Thanks, Entity, I've heard that from several people but I can't seem to find the error.

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

Who likes this?

RUMMAKER Entity1037 FlyingRabidUnicornPig