# Mouse Interface Content Example

**URL:** <https://forums.unrealengine.com/t/mouse-interface-content-example/301211>\
**Category:** World Creation\
**Tags:** Trace, drag, unreal-engine, question\
**Created:** [December 10, 2014, 8:00pm UTC](https://forums.unrealengine.com/t/mouse-interface-content-example/301211 "2014-12-10T20:00:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [December 10, 2014, 8:00pm UTC](https://forums.unrealengine.com/t/mouse-interface-content-example/301211/1 "2014-12-10T20:00:21Z")

</div>

The mouse content example has a rather big bug: [https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/MouseInterface/BlueprintActors/index.html](https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/MouseInterface/BlueprintActors/index.html)

Basically you will lose the ball to the perspective. With the close to the ball floor it works rather well but you can see it twitching when you move a ball to the upper right corner.  
When you delete the floor/background so there is no trace collision it becomes very obvious.

Note: If you use Z as also defined by the mouse trace it works right but that is rarely what you want it to do.

I have no working solution for it myself. It would be great if some bright mind at Epic could make a Mouse Interface content example that works right.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 31, 2014, 7:48pm UTC](https://forums.unrealengine.com/t/mouse-interface-content-example/301211/2 "2014-12-31T19:48:23Z")

</div>

Hello,

Thank you for the information and time you have given finding this issue. If you would tell me what it is that you are wanting to achieve with the content example I may be able to assist you in your goals. I noticed that you said you have no working solutions for yourself. I take it that you were hoping to use some or all of the example in a project. If this is the case I would be more than happy to help. Could you please explain what it is you were looking for?

---

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [January 1, 2015, 11:47am UTC](https://forums.unrealengine.com/t/mouse-interface-content-example/301211/3 "2015-01-01T11:47:46Z")

</div>

I using it now with all directions, so basically the object is where the trace hits. It is not optimal but works in my case: [Imgur: The magic of the Internet](http://imgur.com/YrsHFhj)  
I’m using some trickery there with a invisible rotating plane being right behind the skull. So grabbed pieces don’t get moved all the way back to the real wall behind the skull. Grabbed pieces get also a offset added while they are overlapping with something. So it looks a bit less like the grabbed stuff moves through the things it traces on.

What would be optimal would be some framework that allows a object to be really grabbed, not some trickery with trace, set position to trace hit and every tick like the example. Something that really does drag and drop in 3d space. Depth could then be a parameter. So devs could put that on the mousewheel or whatever they want. As a extra grabbed pieces could alternatively be dragged over any surface without any overlapping. Another extra could be that the dragged object optionally enters physic simulation once dropped.  
I think such framework would make tons of different gameplay mechanics possible and not just for puzzle games.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [March 10, 2015, 5:31pm UTC](https://forums.unrealengine.com/t/mouse-interface-content-example/301211/4 "2015-03-10T17:31:53Z")

</div>

Hello,

I have tested this issue in 4.7.2 and I was unable to reproduce this problem. It appears to have been fixed. I am also including a blank project that I have been working on to give a good starting point for an object mover. This version can move physics object. You can pick them up with the left mouse button and you can scroll in and out with the scroll wheel and If needed you can click left and right to place the object at the maximum distance away from you. I hope this helps get you started in the correct direction.

 ![33460-objectmoverhelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/1/8711a75ecfdee850c0a3208553be63b45ca0ff02.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![Davision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davision](https://forums.unrealengine.com/u/Davision)\
**Post date:** [March 12, 2015, 12:50pm UTC](https://forums.unrealengine.com/t/mouse-interface-content-example/301211/5 "2015-03-12T12:50:12Z")

</div>

Thanks, much appreciated!
