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
39
S
12
G
8
Posts: 580
Reputation: 7,108

Post » Wed Jul 14, 2010 1:39 am

AFAIK the only way to do it is to delete one of the hinged objects.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

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
45
S
17
G
37
Posts: 2,853
Reputation: 25,966


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests