Пример #1
0
        public static TransitIcon CreateDepartIcon(PositionDB targetPosition)
        {
            var icon = new TransitIcon(targetPosition);

            icon.CreateCheverons(0, 11);
            return(icon);
        }
Пример #2
0
        public static TransitIcon CreateArriveIcon(PositionDB targetPosition)
        {
            var icon = new TransitIcon(targetPosition);

            icon.CreateCheverons(0, -13);
            return(icon);
        }
Пример #3
0
        void Setup()
        {
            _movingEntityCurrentOrbit = _movingEntity.GetDataBlob <OrbitDB>();
            _transitLeaveDateTime     = _currentDateTime;

            //_transitLeavePosition = OrbitProcessor.GetAbsolutePosition_AU(_movingEntityCurrentOrbit, _transitLeaveDateTime);
            _parentPositionDB = _movingEntityCurrentOrbit.Parent.GetDataBlob <PositionDB>();
            _departIcon       = TransitIcon.CreateDepartIcon(_parentPositionDB);
            OnPhysicsUpdate();
            //_icons.Add(new TransitIcon(_targetPositionDB, _transitArrivePosition));
        }
Пример #4
0
        public void SetArrivalTarget(Entity targetEntity)
        {
            _targetEntity     = targetEntity;
            _targetPositionDB = _targetEntity.GetDataBlob <PositionDB>();

            _arriveIcon = TransitIcon.CreateArriveIcon(_targetPositionDB);
            //these are ralitive to thier respective bodies, for the initial default, copying the position shoul be fine.
            //however a better default would djust the distance from the target to get a circular orbit and
            //check if it's above minimum and that the resulting orbit is within soi

            OnPhysicsUpdate();
        }