[Resolved] Physics distance joint understanding

0 favourites
  • 3 posts
From the Asset Store
An Action RPG Platformer. Strengthen your HP, Mana, Stamina, and energy as you level your player up.
  • I really like physics and have tried the distance joint first. It's a pity but it did not worked as expected. I have created two sprites, added the Physics behavior to the first one and said on start of layout C2 to create a distance joint to the second one. After start of the "game" the physical sprite just drop down, since the other one remained on place. I expected the first one to move/rotate like ticker of a clock under the second one... What was wrong?? Thanks for cooperation.

  • There are two things wrong.

    First, you should apply the physics behaviour to both objects.

    Second, they're falling down because of gravity. The joint is being created but because they're both being pulled downwards at the same speed you won't see any result.

    If you want an object to stay in place then you need to set it to be immovable in the behaviours properties pane on the left side of the layout view - in this case it'll be the base of your pendulum (took me a while to realise that's what you meant by "ticker" :P)

    Example capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • :) Thanks for that considerably explanation!! It works.

    Maybe someday the implicit condition, that for a Physics joint both objects have to be Physics, could be explicitly added to the manual under the appropriate section, and to the Ashley's tutorial about joints?!

    construct.net/en

    construct.net/en

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