Pinning physics objects

Get help using Construct 2

Post » Wed May 29, 2013 1:00 pm

Dropbox link

More collision woes, lol

I'm not sure yet if this is a bug or... but it seems that with 2 physics enabled objects pinned together some wonky s**t happens.

For one pinning just flat out doesn't work. And second, collisions aren't being handled properly between anything at all. The blue box goes nearly all the way through the purple one.

Things to try:

Make the blue box immovable.

Remove physics from the blue box. This makes things perform normally, but what if you wanted collisions between the 2 big boxes?

Disable collisions between the green box and the orange one... what the heck? Now nothing collides.

I have no idea why any of this is happening. Anyone have a clue?
B
19
S
7
G
10
Posts: 82
Reputation: 4,996

Post » Wed May 29, 2013 1:59 pm

Is something happening to the blue box's collision polygon once it's pinned to another sprite or something?

It seems like the green box's collision polygon is almost overwriting the blue one in some cases.
B
19
S
7
G
10
Posts: 82
Reputation: 4,996

Post » Wed May 29, 2013 2:22 pm

Okay, I seemed to have fixed this issue by getting rid of pinning altogether and instead creating a limited revolute joint to connect the objects together.

I read the physics tutorial (I swear!) but it didn't mention the limited joint...and for whatever reason I just never noticed it in the event editor.

Still not sure why pinning doesn't work though.
B
19
S
7
G
10
Posts: 82
Reputation: 4,996


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests