What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

WoWMathHelper.GetPointAt() what is rotation and pitch?

strix

New Member
Joined
Feb 13, 2010
Messages
442
Reaction score
18
Like in topic name, what exactly is rotation and pitch in this function?

I basically need to calculate points at side of boss and slightly behind (the way you fight dragon bosses with melees).

Would it be something like WoWMathHelper.GetPointAt(unit.Location, unit.InteractRange, unit.Rotation, Math.PI / 1.8)?
 
Last edited:
Basically it calculates from + dir * distance, where "dir" is a unit vector similar to the following:
YawPitchRoll.png

Notice the red arrow - that is the vector.

If you need to calculate points at sides of units, there is WoWMathHelper.CalculatePointAtSide. If you want to roll it yourself, you can cross a Z-vector (0, 0, 1) with the 2-D facing vector of the unit (cos(yaw), sin(yaw), 0).
 
Back
Top