Код
Code
inline irr::core::vector3df AIGetRotationFromPosition(vector3df PositionTo,vector3df PositionFrom)
{
vector3df RezultRotation;
irr::core::vector3df vec = (PositionTo - PositionFrom);
vec.normalize();
RezultRotation = vec.getHorizontalAngle();
return RezultRotation;
}