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

Report as inappropriate.

shrucis1
shrucis1 presents ...

2013/11/24

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.

Controls:
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.
Enjoy!

3325 views / 8 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.
Entity1037Entity1037

2013/11/26

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

2013/11/26

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