Help with applying a revoult joint to a shape

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi All, I am having some difficulty applying a Revolt joint to a shape, my sample works but has a strange behavior.

    I want the boxed to be able to picked up with one click, but there seems to be problem the boxes need to be double clicked before you can move them. the logic I have looks sound please can anyone help me. I been trying all sorts of different ways but to no avail. please see file and pictures bellow. your help would be much appreciated. thanks in advance.




  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This actually may be a bug in the physics system. I downloaded your capx and did some tests. I was able to get the joint to work on single click if I applied an impulse to the box between creating the Sprite2 object and creating the joint. I gave the impulse a power of 1 in the direction of the Sprite2 so it didn't really cause the box to move but it still did the trick. It appears the problem is caused by the box sleeping. If you quickly grab a box on start up using your current settings, it will grab it with a single click. So, when you create the initial joint on a sleeping object, it wakes it up for a couple ticks but the joint doesn't connect properly. If you then click again before the box sleeps, the joint is created. Using the impulse wakes the box up so the joint can be created.

    You may want to do some more testing given the above information and submit a bug ticket. Whether you do decide to submit it or not, the impulse should get you what you need. Good luck with your project.

  • thank you so much, works like a charm.

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