Announcement

Collapse
No announcement yet.

Click and drag actor, position unstable when moving too fast

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Click and drag actor, position unstable when moving too fast

    I've implemented a click and drag for actors where I can click on an actor and drag them around, however randomly it will snap to the edge of the screen if I move the mouse too fast.

    Any ideas?
    Attached Files
    Last edited by Zach2344; 05-11-2017, 10:21 PM.

    #2
    bump .. help would be much appreciated

    Comment


      #3
      bump .. help would be much appreciated

      Comment


        #4
        Is it possible that the cursor ends up outside of the viewport when you drag the object around?

        Comment


          #5
          I dont think so. I can drag the actor slowly across the screen with no problems. But, if i drag the actor quickly across the same path, it will snap to the edge of the screen and stay there until I hover over it, or any duplicate actors (i have many of them on the screen), at which point it will follow my mouse location again
          Last edited by Zach2344; 05-15-2017, 05:53 PM.

          Comment


            #6
            Perhaps something is messing up with the visibility channel (maybe even the very object you are dragging); is this an empty scene or a densely populated one (apart from the objects in question)? Here's my stab in the dark - consider setting up an object channel rather than using visibility for tracing:

            Projects Settings > Engine > Collision > NewObject Channel > Block (default response)

            In the object you are tracing against (floor?), set the collision to Custom and block only the channel you set up (it should be on the list now), then get hit like this:

            Click image for larger version

Name:	Untitled.png
Views:	1
Size:	77.4 KB
ID:	1128132

            This will at least ensure you are tracing only against the objects you want, rather than everything that is visible in the scene. See if this irons out the kinks.

            Comment

            Working...
            X