Skip to main content
added 103 characters in body
Source Link
Peter
  • 13
  • 3

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken) \$2\times\frac{alpha}{n}\$ degrees at each step.

Update: as correctly pointed out, it should be \$2\times\frac{alpha}{n - 1}\$ degrees at each step.

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken) \$2\times\frac{alpha}{n}\$ degrees at each step.

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken) \$2\times\frac{alpha}{n}\$ degrees at each step.

Update: as correctly pointed out, it should be \$2\times\frac{alpha}{n - 1}\$ degrees at each step.

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.

added 1 character in body
Source Link
Peter
  • 13
  • 3

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken) \$2\times\frac{alpha}{n}\$ degrees at each step).

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken \$2\times\frac{alpha}{n}\$ degrees at each step)

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken) \$2\times\frac{alpha}{n}\$ degrees at each step.

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.

Source Link
Peter
  • 13
  • 3

Calculate path segments size

I have a problem more closely described on a picture below. The idea is that I have my agent in point A and I want to get to the point B. The problem is, that agents rotation towards point B is alpha degrees. I want to get to the point B in n steps (path segments) such that at each step, I rotate towards point B by uniform degrees. That should be (if I am not mistaken \$2\times\frac{alpha}{n}\$ degrees at each step)

enter image description here

I want to know how big of a steps (path segments) I need to make so they all have same size and will get me to the point B.