GetReciprocalHeading()
Code:
2182 float Mob::GetReciprocalHeading(Mob* target) { First off, great idea! Just 2 questions, though. What if the heading is already 0.0 and wouldn't it be easier to just do a mod? Code:
float Mob::GetReciprocalHeading(Mob* target) { |
Thanks. Yours looks cleaner. Obviously, I should have spent more time paying attention in math class :-) I'm trying it out in branch now along with some new code to get bot rogue's and rogue pet's to position themselves behind a mob they are attacking.
|
All times are GMT -4. The time now is 12:14 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.