コード例 #1
0
		public ThrusterDefinition(MyObjectBuilder_ThrustDefinition definition)
			: base(definition)
		{ }
コード例 #2
0
        private void InitJetpackThrust(int bone, Vector3 forward, float offset, ref MyObjectBuilder_ThrustDefinition thrustProperties)
        {
            var thrust = new MyJetpackThrust()
            {
                Bone = bone,
                Forward = forward,
                Offset = offset,
                ThrustMaterial = thrustProperties.FlamePointMaterial,
                ThrustGlareSize = thrustProperties.FlameGlareSize
            };

            thrust.Light = MyLights.AddLight();
            thrust.Light.ReflectorDirection = Container.Entity.PositionComp.WorldMatrix.Forward;
            thrust.Light.ReflectorUp = Container.Entity.PositionComp.WorldMatrix.Up;
            thrust.Light.ReflectorRange = 1;
            thrust.Light.Color = thrustProperties.FlameIdleColor;
            thrust.Light.Start(MyLight.LightTypeEnum.PointLight, 1);

            m_jetpackThrusts.Add(thrust);
        }