Move relative to its own position

From libopenmetaverse - libomv - Developer Wiki

Jump to: navigation, search

x and y are the new coordinates, relative to current avatar position

OpenMetaverse.Vector3 pos = client.Self.SimPosition;
x = (int)pos.X + x;
y = (int)pos.Y + y;
client.Self.AutoPilotLocal(x, y, pos.Z);