예제 #1
0
        internal void Merge(VehicleProperties _props)
        {
            Type  = _props.Type;
            Flags = _props.Flags;

            foreach (var item in _props.ParamsFloat)
            {
                ParamsFloat[item.Key] = item.Value;
            }

            foreach (var item in _props.ParamsVec)
            {
                ParamsVec[item.Key] = item.Value;
            }

            foreach (var item in _props.ParamsRot)
            {
                ParamsRot[item.Key] = item.Value;
            }

            // Copy the reference to the one simulation dynamics area.
            Dynamics = _props.Dynamics;
        }
예제 #2
0
        internal void Merge(VehicleProperties _props)
        {
            Type = _props.Type;
            Flags = _props.Flags;

            foreach (var item in _props.ParamsFloat)
                ParamsFloat[item.Key] = item.Value;

            foreach (var item in _props.ParamsVec)
                ParamsVec[item.Key] = item.Value;

            foreach (var item in _props.ParamsRot)
                ParamsRot[item.Key] = item.Value;

            // Copy the reference to the one simulation dynamics area.
            Dynamics = _props.Dynamics;
        }