myRigbody = GetComponent<Rigidbody2D>();
Vector3 dir = Collider.position - transform.position;
float angle = Vector3.SignedAngle(Vector3
Unity2d物体朝向的解决通用代码
于 2022-03-22 14:32:38 首次发布
myRigbody = GetComponent<Rigidbody2D>();
Vector3 dir = Collider.position - transform.position;
float angle = Vector3.SignedAngle(Vector3