Answer the question
In order to leave comments, you need to log in
What is the name of the method that defines Clamping on an object?
public void OnDrag(PointerEventData eventData)
{
Debug.Log("OnDrag");
vector2 = Camera.main.ScreenToWorldPoint(eventData.position);
rigidbody2D.MovePosition(vector2);
}
Answer the question
In order to leave comments, you need to log in
You can try to track the position of the mouse and make a timer. If for example 2 seconds the mouse does not change its position or does not change much from the previous point, then the object falls. Try this logic
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question