Cloth simulation with collisions

Show us your completed creations made in Construct 2

Post » Sat Jul 28, 2012 4:39 pm

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
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Jul 28, 2012 6:06 pm

It's pretty cool. :) There is a glitch with attaches one of the bottom corners to the wall.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Sat Jul 28, 2012 6:18 pm

[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?
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300

Post » Sat Jul 28, 2012 6:20 pm

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 ^^'' )
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 1 guest