how use drag drop with physics correctly?

  • I am trying move objects that have physical and drag drop behaviors, but they don't respect the collision, they go beyond the object. somebody could help me (I am using google trasnlate).

  • I have done this many of times in C2, if you want a very realistic feeling to it with weight etcetera, you would use applying a natural realistic force towards the cursor, for a snap-to method it get's more complicated, but I'm more than sure it's possible. Not tried a snap-to method though, I like the more 'weighty' realistic feel to it, like a ragdoll.

  • Ok I used apply force towards position with the cursor and worked well to my purpose.

    tank you . <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Lol, that's his signature, it has nothing to do with that

  • I've had the same issue with my game. If I understand what you did correctly, it will not give you a very good result. What I did what every frame, I would set the velocity of the object towards the cursor, so whatever velocity the object had before does not matter. You can also set the speed the object goes to the cursor by multiplying the number you set the velocity to by how many times faster you want the object to move. By the way, please do not edit your posts to take out something you said that someone replied to. It makes the replier look stupid.

    Thank you!

  • scirra.com/forum/your-c2-tests_topic41840_page33.html

    i have here a lil drag drop example ..with physics ...and collisions

    capx and a demo online

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