Hinges

This forum is currently in read-only mode.
From the Asset Store
War UI arms your soldiers, medics, engineers, and specialist with everything they need to complete the mission.
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • AFAIK the only way to do it is to delete one of the hinged objects.

  • AFAIK the only way to do it is to delete one of the hinged objects.

    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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)