Player Positioning on a Rotating Circle
A player is moving and lands on a rotating circle from any possible angle, i got the rotation down, but i cant seem to wrap my head around the position of the player, its always much further from the circle that it has landed on. Here's the code, that is handling the positioning and the rotation: transform.SetParent(collision.transform); //setting the parent Vector2 circleNormal = transform.position - collision.transform.position; //finding the middle of the circle from the landed player Quaternion rot = Quaternion.FromToRotation(Vector2.up, circleNormal); //finding the right rotation transform.rotation = rot; //setting the players rotation float rad = collision.GetComponent().radius * transform.localScale.y; transform.position = collision.transform.position + new Vector3(circleNormal.x, circleNormal.y, 0f).normalized * rad; // setting the transform (THE PROBLEM IS HEREEEE!!!!)