Missile#

class ansys.stk.core.stkobjects.Missile#

Bases: ISTKObject, ILifetimeInformation, IProvideSpatialInfo

Missile object.

Overview#

set_trajectory_type

Set the propagator type.

is_trajectory_type_supported

Get a value indicating whether the specified type can be used.

set_attitude_type

Set the type of attitude profile used by the missile.

is_attitude_type_supported

Get a value indicating whether the specified type can be used.

trajectory_type

Get the propagator type used by the missile.

trajectory_supported_types

Return an array of valid choices.

trajectory

Get the missile’s trajectory properties.

attitude_type

Get the type of attitude profile used by the missile.

attitude_supported_types

Return an array of valid choices.

attitude

Get the missile’s attitude profile.

graphics

Get the missile’s 2D Graphics properties.

graphics_3d

Get the missile’s 3D Graphics properties.

ground_ellipses

Get the missile’s ground ellipses properties.

access_constraints

Get the constraints imposed on the missile.

export_tools

Return the MissileExportTools interface.

space_environment

Return the missile’s SpaceEnvironment properties.

atmosphere

Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.

radar_clutter_map

Return the radar clutter map.

radar_cross_section

Return the radar cross sectoin.

eclipse_bodies

Get the customized list of Eclipse Bodies, which are central bodies used in lighting computations.

use_terrain_in_lighting_computations

Opt whether to compute lighting using terrain data.

lighting_maximum_step

Do not use this property, as it is deprecated. Use LightingMaxStepTerrain or LightingMaxStepCbShape as appropriate. The maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

laser_environment

Get the laser environment.

rf_environment

Get the RF environment.

lighting_maximum_step_terrain

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

lighting_maximum_step_central_body_shape

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.

get_eoir_settings

Get the EOIR properties of the missile.

Examples#

Create a New Missile (on the current scenario central body)

# Scenario scenario: Scenario object
missile = scenario.children.new(STKObjectType.MISSILE, "MyMissile")
missile.set_trajectory_type(PropagatorType.BALLISTIC)
trajectory = missile.trajectory
root.units_preferences.set_current_unit("DateFormat", "EpSec")
trajectory.ephemeris_interval.set_explicit_interval(0, 0)  # stop time later computed based on propagation
trajectory.launch.latitude = 29
trajectory.launch.longitude = -81
trajectory.impact_location.impact.latitude = 27
trajectory.impact_location.impact.longitude = -43
trajectory.impact_location.set_launch_control_type(VehicleLaunchControl.FIXED_APOGEE_ALTITUDE)
trajectory.impact_location.launch_control.apogee_altitude = 1200  # km
trajectory.propagate()

Import detail#

from ansys.stk.core.stkobjects import Missile

Property detail#

property Missile.trajectory_type: PropagatorType#

Get the propagator type used by the missile.

property Missile.trajectory_supported_types: list#

Return an array of valid choices.

property Missile.trajectory: IPropagator#

Get the missile’s trajectory properties.

property Missile.attitude_type: VehicleAttitude#

Get the type of attitude profile used by the missile.

property Missile.attitude_supported_types: list#

Return an array of valid choices.

property Missile.attitude: IVehicleAttitude#

Get the missile’s attitude profile.

property Missile.graphics: MissileGraphics#

Get the missile’s 2D Graphics properties.

property Missile.graphics_3d: MissileGraphics3D#

Get the missile’s 3D Graphics properties.

property Missile.ground_ellipses: VehicleGroundEllipsesCollection#

Get the missile’s ground ellipses properties.

property Missile.access_constraints: AccessConstraintCollection#

Get the constraints imposed on the missile.

property Missile.export_tools: MissileExportTools#

Return the MissileExportTools interface.

property Missile.space_environment: SpaceEnvironment#

Return the missile’s SpaceEnvironment properties.

property Missile.atmosphere: Atmosphere#

Do not use this property, as it is deprecated. The new RFEnvironment property can be used to configure atmospheric models.

property Missile.radar_clutter_map: IRadarClutterMapInheritable#

Return the radar clutter map.

property Missile.radar_cross_section: RadarCrossSectionInheritable#

Return the radar cross sectoin.

property Missile.eclipse_bodies: VehicleEclipseBodies#

Get the customized list of Eclipse Bodies, which are central bodies used in lighting computations.

property Missile.use_terrain_in_lighting_computations: bool#

Opt whether to compute lighting using terrain data.

property Missile.lighting_maximum_step: float#

Do not use this property, as it is deprecated. Use LightingMaxStepTerrain or LightingMaxStepCbShape as appropriate. The maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

property Missile.laser_environment: PlatformLaserEnvironment#

Get the laser environment.

property Missile.rf_environment: IPlatformRFEnvironment#

Get the RF environment.

property Missile.lighting_maximum_step_terrain: float#

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is true. Uses Time Dimension.

property Missile.lighting_maximum_step_central_body_shape: float#

Get or set the maximum step size to use when computing lighting when UseTerrainInLightingComputations is false. Uses Time Dimension.

property Missile.get_eoir_settings: IEOIR#

Get the EOIR properties of the missile.

Method detail#

Missile.set_trajectory_type(self, propagator: PropagatorType) None#

Set the propagator type.

Parameters:

propagator : PropagatorType

Returns:

None

Missile.is_trajectory_type_supported(self, propagator: PropagatorType) bool#

Get a value indicating whether the specified type can be used.

Parameters:

propagator : PropagatorType

Returns:

bool

Missile.set_attitude_type(self, attitude: VehicleAttitude) None#

Set the type of attitude profile used by the missile.

Parameters:

attitude : VehicleAttitude

Returns:

None

Missile.is_attitude_type_supported(self, attitude: VehicleAttitude) bool#

Get a value indicating whether the specified type can be used.

Parameters:

attitude : VehicleAttitude

Returns:

bool