public override CmdResult ExecuteRequest(CmdRequest args) { SimPosition pos; if (!args.TryGetValue("pos", out pos)) { pos = TheSimAvatar; } SimPathStore R = pos.PathStore; Vector3 v3 = pos.SimPosition; WriteLine("SimZInfo: " + pos + " " + R.GetGroundLevel(v3.X, v3.Y)); SimWaypoint WP = R.GetWaypointOf(v3); WriteLine("WaypointInfo: {0}", WP.OccupiedString(R.GetCollisionPlane(v3.Z))); return(Success("Ran " + Name)); }
public override CmdResult ExecuteRequest(CmdRequest args) { SimPosition pos; if (!args.TryGetValue("pos", out pos)) { pos = TheSimAvatar; } SimPathStore R = pos.PathStore; Vector3 v3 = pos.SimPosition; WriteLine("SimZInfo: " + pos + " " + R.GetGroundLevel(v3.X, v3.Y)); #if COLLIDER_ODE Vector3 landing = R.CreateAndDropPhysicalCube(v3); WriteLine("SimHInfo: {0}", landing); #endif return(Success("Ran " + Name)); }