Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What object is this cross in a circle?
#12
Hi everyone! I added "ori += 90" into the code above and tried:
Code:
float dist = -5.0; // <------change this to 5.0 to go in front of the object
point pos = item.position;
float ori = item.orientation;
ori += 90;
It works, but there are some problems. First of all not all crosses oriented in the same manner. So if you apply that code, the FlyingShooter will go sometimes to the front of a circle, sometimes to the rear side of the next circle. I can't figure out how to fix it. How to make it to go only to the front of a circle. By "front" I mean that side of a circle, which lies in the assumed route of FlyingShooter.


Messages In This Thread
RE: What object is this cross in a circle? - by Rinoldo - 03-26-2016, 06:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)