Hinges

For questions about using Classic.

Post » Wed Jul 14, 2010 12:16 am

Hey - Just a quick one,

I've got a rope made of physics objects hinged to each other, I got it so when my player collides with the rope he (who is also physics) hinges to it, from there I can add an x force on a button hold to swing. But how do I jump off? How would you release something from its hinge?

Peas,
Mik
B
42
S
12
G
8
Posts: 600
Reputation: 7,223

Post » Wed Jul 14, 2010 1:39 am

AFAIK the only way to do it is to delete one of the hinged objects.
B
33
S
5
G
8
Posts: 1,210
Reputation: 7,046

Post » Wed Jul 14, 2010 3:52 am

[quote="Davioware":fn9s7n0b]AFAIK the only way to do it is to delete one of the hinged objects.[/quote:fn9s7n0b]

Yes this.

Delete one of the hinged objects, then recreate it again in the same x.y location and angle, then re-hinge it.

This is the method I used in Tonks for recreating the tank treads should they "fall off" the tank. That was a bug at the time which is now fixed, but it was the only way to make it work at the time.

I stored the objects X, Y, and angle values in private variables, so as the object was deleted it was recreated instantly. You never knew it was gone.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
62
S
24
G
39
Posts: 2,963
Reputation: 28,311


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest