Ejemplo n.º 1
0
        private void Start()
        {
            pheasy = GetComponent <Pheasy>();

            initialWorldPos = transform.position;
            initialWorldRot = transform.rotation;
        }
Ejemplo n.º 2
0
        public void IgnoreCollisions(Pheasy other, bool ignore, bool includeRelated)
        {
            if (includeRelated)
            {
                meAndMyRels.Clear();
                FindMeAndRelated(meAndMyRels);

                otherAndItsRels.Clear();
                other.FindMeAndRelated(otherAndItsRels);

                for (int i = 0; i < meAndMyRels.Count; i++)
                {
                    for (int j = 0; j < otherAndItsRels.Count; j++)
                    {
                        meAndMyRels[i].IgnoreCollisions(otherAndItsRels[j], ignore, false);
                    }
                }
            }
            else
            {
                other.colliders.ForEach(c => IgnoreCollisions(c, ignore));
            }
        }
Ejemplo n.º 3
0
 public TargetConstraint(Pheasy pheasy, string name)
 {
     this.pheasy = pheasy;
     this.name   = name;
 }