objects going around a solid object

For questions about using Classic.

Post » Fri Nov 11, 2011 3:15 pm

Is there any way to do this?.The green dots are linked to the blue and red squares all the time ,But when the green dots collide with a wall they must go around the wall but keeping there link to the other square.
It works like the illustration i made below.

B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Nov 11, 2011 9:01 pm

Really? Is there no solution for this problem??.Maybe some kind of node system to get the dots around the wall in some way?.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Nov 11, 2011 9:47 pm

ok Im starting to get the hang of it somehow.But the dots are going haywire now lmao .Wow i never thought an event driven app could be more confusing than programming lol.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Nov 11, 2011 9:49 pm

I think you'd need to work with the pathfinding plugin, or something. In any event I feel what you want to do would require some advanced math computation to get it to be just right.
B
19
S
3
G
2
Posts: 148
Reputation: 1,945

Post » Fri Nov 11, 2011 9:56 pm

I've tried this

If it's not good enough, as EmperorIng360 says, try Kyatric's pathfinder plugin.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Fri Nov 11, 2011 10:11 pm

Nice example Noga.Ok...Where's Kyatric's Pathfinder plugin??.It's almost like a piece off string which is tied to each object, when that string hits a block in the middle then it goes backwards but the block's will keep going forward until the string tightens.

Your'e right emperoring it would take some serious mathematical skills to pull this of correctly.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Nov 11, 2011 10:25 pm

Here's the plugin. It's for C2, but it's well commented so it shouldn't be that hard to convert it to CC.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Fri Nov 11, 2011 10:29 pm

Well, here's a super quick and dirty approach. It would need some extra calculations to deal with unevenly sized or grouped solids, but the idea is there.

Check it out. The end and beginning balls can be drag and dropped, you can also change the number of steps in the Global Variable.
B
19
S
6
G
6
Posts: 1,101
Reputation: 5,646

Post » Fri Nov 11, 2011 11:15 pm

Very nice example indeed

But here is what should actually happen.I hope this gif animation works.

B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Fri Nov 11, 2011 11:35 pm

Hm..What about linking together some physics objects with large transparent borders for the chain?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests