# How do i do so i can drag my mouse and make a line between my Ball and my mouse

**URL:** <https://forums.unrealengine.com/t/how-do-i-do-so-i-can-drag-my-mouse-and-make-a-line-between-my-ball-and-my-mouse/362180>\
**Category:** Community & Industry Discussion\
**Tags:** shooting, Tracing, unreal-engine, question\
**Created:** [June 27, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/how-do-i-do-so-i-can-drag-my-mouse-and-make-a-line-between-my-ball-and-my-mouse/362180 "2016-06-27T17:08:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc19b26a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc19b26a1](https://forums.unrealengine.com/u/anonymous_user_cc19b26a1)\
**Post date:** [June 27, 2016, 5:08pm UTC](https://forums.unrealengine.com/t/how-do-i-do-so-i-can-drag-my-mouse-and-make-a-line-between-my-ball-and-my-mouse/362180/1 "2016-06-27T17:08:12Z")

</div>

I want to make a Golf game. I want to make a line that is connected with the mouse cursor and the golf ball. i’d also want to do so when i drag my cursor and the line becomes longer or smaller, then the ball would shoot depending on how long the line is.

Is there anyway i can do this ?
