Пример #1
0
        public Vector3 Calc(Vector3 input)
        {
            float x = input.X;
            float y = input.Y;
            float z = input.Z;

            if (_transformForTransport)
            {
                ITransport transport = _owner.GetDirectTransport();
                if (transport != null)
                {
                    float unused = 0.0f; // need reference
                    transport.CalculatePassengerOffset(ref x, ref y, ref z, ref unused);
                }
            }
            return(new Vector3(x, y, z));
        }