wowclassic [3.4.2.50664]
a small question very confused
In Transport i can get the real location
Code:
public override Location Location
{
get
{
Location ret = new Location(X, Y, Z);
if (InTransport)
{
var t = new PGameObject(TransportGuid);
var pos = ret.Transform(t.WorldMatrix);
return pos;
}
return ret;
}
}
public Location Transform(Matrix4 matrix)
{
var v = new Location(0, 0, 0)
{
X = X * matrix.xx + Y * matrix.xy + Z * matrix.xz + matrix.xw,
Y = X * matrix.yx + Y * matrix.yy + Z * matrix.yz + matrix.yw,
Z = X * matrix.zx + Y * matrix.zy + Z * matrix.zz + matrix.zw
};
return v;
}
But the Rotation value is a fixed value, While the ship is moving the character is still。
Facing direction is wrong,
so how do I get it Just like on land.?
I use Rotation= [[base + 0xF0] + 0x30]
HELP!!!