本文整理汇总了C#中System.Vector3.IsWall方法的典型用法代码示例。如果您正苦于以下问题:C# Vector3.IsWall方法的具体用法?C# Vector3.IsWall怎么用?C# Vector3.IsWall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Vector3
的用法示例。
在下文中一共展示了Vector3.IsWall方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetRealPosition
private Vector3 GetRealPosition(Vector3 end)
{
if (end.IsWall())
{
for (var i = 0; i < 500; i = i + 2)
{
List<IntPoint> circlePath = new Geometry.Polygon.Circle(end, i, 10).ToClipperPath();
foreach (var item in circlePath)
{
Vector3 newPos = new Vector2(item.X, item.Y).To3D2();
if (!newPos.IsWall())
{
return newPos;
}
}
}
}
return end;
}
示例2: isWall
bool isWall(Vector3 Pos)
{
return Pos.IsWall();
}
示例3: CheckQusage
private bool CheckQusage(Vector3 pos, Obj_AI_Hero target)
{
return pos.IsValid() && pos.Distance(player.Position) < Q.Range &&
(target.HasBuff("fiorapassivemanager") || target.HasBuff("fiorarmark")) && !pos.IsWall() &&
Qradius > pos.Distance(target.Position);
}
示例4: Jump
private static void Jump(Vector3 position)
{
if (position.IsWall())
return;
if(Player.Distance(position) > W.Range)
{
position = Player.Position.Extend(position, W.Range);
}
Obj_AI_Base obj = HeroManager.Allies.FirstOrDefault(x => x.IsValid && !x.IsDead && !x.IsMe && x.Distance(position) < 150 );
if (obj == null)
{
obj = ObjectManager.Get<Obj_AI_Minion>().FirstOrDefault(x => x.IsValid && x.IsAlly && !x.IsDead && x.Distance(position) < 150);
}
if(obj == null)
{
if (Utils.TickCount - LastTimeWardPlace < 250)
{
Utility.DelayAction.Add(40, () => Jump(position));
Orbwalker.SetOrbwalkingPoint(position);
return;
}
if (TrinketN.IsReady())
{
TrinketN.Cast(position);
LastTimeWardPlace = Utils.TickCount;
Utility.DelayAction.Add(40, () => Jump(position));
}
else if (SightStone.IsReady())
{
SightStone.Cast(position);
LastTimeWardPlace = Utils.TickCount;
Utility.DelayAction.Add(40, () => Jump(position));
}
else if (WardN.IsReady())
{
WardN.Cast(position);
LastTimeWardPlace = Utils.TickCount;
Utility.DelayAction.Add(40, () => Jump(position));
}
else if (EOTOasis.IsReady())
{
EOTOasis.Cast(position);
LastTimeWardPlace = Utils.TickCount;
Utility.DelayAction.Add(40, () => Jump(position));
}
else if (EOTEquinox.IsReady())
{
EOTEquinox.Cast(position);
LastTimeWardPlace = Utils.TickCount;
Utility.DelayAction.Add(40, () => Jump(position));
}
else if (EOTWatchers.IsReady())
{
EOTWatchers.Cast(position);
LastTimeWardPlace = Utils.TickCount;
Utility.DelayAction.Add(40, () => Jump(position));
}
}
else
{
W.Cast(obj);
}
}