OpenMetaverse.AgentManager.AutoPilotLocal C# (CSharp) Method

AutoPilotLocal() public method

Use the autopilot sim function to move the avatar to a new position
The z value is currently not handled properly by the simulator
public AutoPilotLocal ( int localX, int localY, float z ) : void
localX int Integer value for the local X coordinate to move to
localY int Integer value for the local Y coordinate to move to
z float Floating-point value for the Z coordinate to move to
return void
        public void AutoPilotLocal(int localX, int localY, float z)
        {
            uint x, y;
            Utils.LongToUInts(Client.Network.CurrentSim.Handle, out x, out y);
            AutoPilot((ulong)(x + localX), (ulong)(y + localY), z);
        }