Concave object collision?

Discussion and feedback on Construct 2

Post » Fri Mar 20, 2015 5:19 am

Hi,

I see that it is easier on convex collision. But may i know how concave collision can be done?

Please see this image

concave.jpg


So when a round ball is placed on left or right corner of concave object, the ball will come to center,

I learned that Chipmunk can do it. But I know experts are here to give me right reply,

Thank you,
You do not have the required permissions to view the files attached to this post.
Last edited by vijayrajesh on Fri Mar 20, 2015 8:53 am, edited 2 times in total.
B
9
S
2
Posts: 59
Reputation: 763

Post » Fri Mar 20, 2015 8:30 am

The above image is concave not convex ( unless you rotate it 180 degrees). The only real way to do what you ask is using the physics behavior.
B
45
S
16
G
9
Posts: 1,096
Reputation: 11,138

Post » Fri Mar 20, 2015 8:51 am

@spongehammer Sorry, I edited the post now.
B
9
S
2
Posts: 59
Reputation: 763

Post » Fri Mar 20, 2015 11:34 am

@vijayrajesh

No need to apologise :) , mistakes happen. Have you tried the physics behavior ?
B
45
S
16
G
9
Posts: 1,096
Reputation: 11,138

Post » Mon Mar 23, 2015 3:42 am

Hi,

I came to a concept like this

Please watch youtube video with id vBv8nuEf9bw

screenshot,

concave-collision.png


(I am not allowed to add url here)

The wine glass border is surrounded with about 10 hidden sprites. They work as borders of glass. But now, I see the issue that, suppose if I want to rotate the wine glass, I need to group all those sprites.

Is there any way to group rotate sprites in runtime?

Thank you,
You do not have the required permissions to view the files attached to this post.
B
9
S
2
Posts: 59
Reputation: 763

Post » Mon Mar 23, 2015 9:07 am

You could pin them all to a common sprite, then just rotate that instead.
B
45
S
16
G
9
Posts: 1,096
Reputation: 11,138

Post » Mon Mar 23, 2015 4:03 pm

@spongehammer that is a great idea. Thanks I will try now
B
9
S
2
Posts: 59
Reputation: 763


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests