How do i move to position using physics

0 favourites
  • 2 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Hi evrey one i really need this solution guys !!

    So

    All i have on the scene is :

    a mouse ,

    an object which i set his position to the mouse position , (it have physic behaviour)

    a second object with physic behaviour ( falling )

    the problem is when i move the first object quickly with the mouse it look like is going trough the falling object a little and he take the exacte postion and really it looks weird and doesnt look good !!

    And i have to :

    notice that when i use the drag and drop behaviour to move the object the collision works perfect ! the object dont go trough the other like when i move it with setting his position evrey tick to mouse position ,

    in my opinion it look like the sprite come before the collision shape or something like this !

    maybe moving it with physics not by setting position will solve this if its right how to move it to the mouse position using physics .

    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
  • If you don't mind it instantly moving to where your mouse is. I think destroying the object, and then re-creating it at Mouse.X and Mouse.Y works well. That's what I use for my physics-based game with checkpoints.

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