collision groups and limiting rotation

Get help using Construct 2

Post » Thu Nov 29, 2012 2:02 am

1) are there collision groups in C2?
i would like to have certain sprites not collide with others, so they can overlap one another, while still maintaining collisions with others - like the ground. i haven't yet been able to figure this out on my own.

2) is there a way to limit rotation?
i have a limited revolute joint and had set the keys to rotate the leg pieces but once they reach the end of the range they continue trying to rotate leading to a "glitch" effect. i have since replaced rotation with applying forces but i find that doesn't simulate walking in a desirable manner. i would like to stop allowing rotation once the leg pieces reach the end of their limited revolute joint range.

here's my file i've been working on:
https://www.dropbox.com/s/z7phgj7n20gpx4e/crane.capx

any help is much appreciated, thank you!
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Sun Dec 02, 2012 6:11 pm

any ideas?
B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Sun Dec 02, 2012 8:31 pm

For the collision pick your Leg Part and use
Physic -> global setting -> Eneable/Disable Collision and select other legparts.

For the "glitch" effect use torque instead of Force. Maybe set a condition to only apply torque when max_angle is not reached.
B
4
S
1
G
1
Posts: 49
Reputation: 997

Post » Tue Dec 04, 2012 11:31 pm

still working on the second part but the disable collisions was just what i was looking for, thank you for the help!
B
14
S
6
G
2
Posts: 136
Reputation: 3,210


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests