- Home /
Rotate object to follow circular movement 2D
Hello there.
I have the following problem. I have a circle that can be dragged around using touch, and the circle has a "box" on it, that can rotate around the circle line. When i drag the circle harder however, i want the box to align itself with the direction that i dragged the circle towards.
I've attached a picture that describes my problem (excuse my drawing skills, no machine with Unity right now). State (1) is the beginning, and i drag the circle towards the State (2), the "box" on the circle must jump straight to the position and rotation that i drag towards, but only if i drag hard (a slower drag does not change the position or rotation of the box).
Any ideas on how i can do this? Thanks in advance!
Your answer
Follow this Question
Related Questions
Updating rotation of client not working - strange error 0 Answers
make player move in direction it's facing 2 Answers
Rotatating a character 2 Answers
Make an object move to a given point by rotating to the correct direction first. 1 Answer
Manipulate Child Movement when rotatiing the parent 0 Answers