force in direction code example
Example: force in direction
Vector3 dir = Quaternion.AngleAxis(angle, Vector3.forward) * Vector3.right; rigidbody2D.AddForce(dir*force);
Vector3 dir = Quaternion.AngleAxis(angle, Vector3.forward) * Vector3.right; rigidbody2D.AddForce(dir*force);