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

Report as inappropriate.

Duta
Duta presents ...

2013/1/9

Cloth Physics

This uses Vertlet integration - see http://en.wikipedia.org/wiki/Verlet_integration if you're interested.

6499 views / 28 in the last 7 days

18 votes | 0 in the last 7 days

Tags: mouse game simulation physics demo with-source

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

2013/5/29

You should add a texture mode
GreenGooGreenGoo

2013/5/29

Wow!
JetLennitJetLennit

2013/5/29

Like, shadows and stuff
A new version of this scenario was uploaded on Wed May 29 18:31:29 UTC 2013 Shading & color and stuff. 's all optional, press T to toggle it
DutaDuta

2013/5/29

JetLennit, like that?
JetLennitJetLennit

2013/5/29

That is it
darkmist255darkmist255

2013/5/29

Shading is a great touch, good suggestion JetLennit.
m_p_v_13m_p_v_13

2013/5/30

Duta, Since your granting wishes, is it possible to make it so that one can grab and move the tie down points? Where/how is the "viscosity" effect implemented? I think it's too "stiff" now. Thanks again for the contribution.
DutaDuta

2013/5/30

Just woken up so it make take longer than normal, but sure. Look at the "drag" variable in the particle class. By the way, this code is fairly old and uses a lot of things which are "bad", such as public variables. I'll clean up the code in this update (as well as adding click&dragging)
A new version of this scenario was uploaded on Thu May 30 11:59:15 UTC 2013 Rewritten the code to try and make it easier to read. It no longer has as many "bad practice"s and I've added a fair amount of comments to make the source more readable. I haven't added click&dragging yet, because I want to go game, but I have improved the texture rendering code.

See all comments

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

Who likes this?

Nosson1459 valdes Entity1037 SPower Busch2207 birdy Gevater_Tod4711 JetLennit MatheMagician Kartoffelbrot FlyingRabidUnicornPig bourne Eli.A darkmist255 Game/maniac montblack Petka paul10y