Page 1 of 1

Cloth simulation with collisions

PostPosted: Sat Jul 28, 2012 4:39 pm
by chrisbrobs
Simulated cloth example, with collision detection (uses the Canvas plugin and physics)
Use the arrows keys, or drag the red bar to move the cloth and collide with the wall.
Could be used as a cape or flag in a game?



Test

Capx

If it sticks you can drag the corners to free it. chrisbrobs2012-07-28 16:41:27

Re: Cloth simulation with collisions

PostPosted: Sat Jul 28, 2012 6:06 pm
by megatronx
It's pretty cool. :) There is a glitch with attaches one of the bottom corners to the wall.

Re: Cloth simulation with collisions

PostPosted: Sat Jul 28, 2012 6:18 pm
by chrisbrobs
[QUOTE=megatronx] It's pretty cool. :) There is a glitch with attaches one of the bottom corners to the wall.[/QUOTE]

Yeh..I mention it at the bottom of the first post.

If it stick's you can click / drag individual corners away from the brick.

Probably a simple solution somewhere in the events?

Re: Cloth simulation with collisions

PostPosted: Sat Jul 28, 2012 6:20 pm
by megatronx
I don't have canvas plugin so i can't check now.

Maybe try condition that if line is longer then N then unpin it? (if you haven't done that already ^^'' )