# Mouse Click Position

**URL:** https://discussions.unity.com/t/mouse-click-position/410588
**Category:** Scripting
**Tags:** Scripting
**Created:** [April 1, 2010, 9:03am UTC](https://discussions.unity.com/t/mouse-click-position/410588 "2010-04-01T09:03:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anon\_32275836](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@anon\_32275836](https://discussions.unity.com/u/anon_32275836)
#### Post date: [April 1, 2010, 9:03am UTC](https://discussions.unity.com/t/mouse-click-position/410588/1 "2010-04-01T09:03:16Z")

</div>

Hii…I am developing a traveling game. I have to move my flight(Game object) from one point to other point based on the mouse click…My question is how can I identify the co-ordinates of Mouse click position in unity so that i can move my flight to that particular position…

---

<div class="post-metadata">

### Author: ![AnomalusUndrdog](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/anomalusundrdog/32/84696_2.png) [@AnomalusUndrdog](https://discussions.unity.com/u/AnomalusUndrdog)
#### Post date: [April 1, 2010, 1:58pm UTC](https://discussions.unity.com/t/mouse-click-position/410588/2 "2010-04-01T13:58:15Z")

</div>

you can do a raycast, using ScreenPointToRay

```auto
	var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
	var selected : RaycastHit;

	if (Physics.Raycast(ray, selected))
	{
		//selected.point is the 3d position of where the mouse is
	}

```
