Esempio n. 1
0
        public void MoveTo(Vector3 dest)
        {
            args.path_Idx_offset = 0;
            Array.Resize(ref args.path, 2);
            TransportPathTransform transform = new TransportPathTransform(unit, args.TransformForTransport);

            args.path[1] = transform.Calc(dest);
        }
Esempio n. 2
0
        public void SetFacing(Vector3 spot)
        {
            TransportPathTransform transform = new TransportPathTransform(unit, args.TransformForTransport);
            Vector3 finalSpot = transform.Calc(spot);

            args.facing.x = finalSpot.X;
            args.facing.y = finalSpot.Y;
            args.facing.z = finalSpot.Z;
            args.flags.EnableFacingPoint();
        }
Esempio n. 3
0
 public void MovebyPath(Vector3[] controls, int path_offset)
 {
     args.path_Idx_offset = path_offset;
     Array.Resize(ref args.path, controls.Length);
     args.path = Array.ConvertAll(controls, r => r = new TransportPathTransform(unit, args.TransformForTransport).Calc(r));
 }