Quantcast
Channel: Answers for "Move object to mouse click position"
Browsing all 4 articles
Browse latest View live

Answer by Ilgiz

maybe it's using UnityEngine; using System.Collections; public class targetmove : MonoBehaviour { Vector3 newPosition; void Start () { newPosition = transform.position; } void Update() { if...

View Article



Answer by falconer

This is pretty simple. You can use the Vector3.Lerp function to achieve this. Use raycasting to get the mouse click position or the touch position. Then use the initial and the final position in the...

View Article

Answer by Ilgiz

maybe it's using UnityEngine; using System.Collections; public class targetmove : MonoBehaviour { Vector3 newPosition; void Start () { newPosition = transform.position; } void Update() { if...

View Article

Answer by falconer

This is pretty simple. You can use the Vector3.Lerp function to achieve this. Use raycasting to get the mouse click position or the touch position. Then use the initial and the final position in the...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images