# Projectile Trajectory Simulator AI Agent Connect

> Deterministic physics engine for precise projectile flight path simulation and target analysis.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_7eNNyPESeK2PAFB3vU00LEd6BSRXT9Q7fsLefkZg/ai-agent-connect
- **Tags:** kinematics, ballistics, gravity, drag, trajectory

## Description

This MCP server provides a deterministic physics engine to simulate projectile flight paths. It accounts for gravity and air resistance to provide precise kinematic data, target hit requirements, and impact analysis. Use `simulate_flight_path` to calculate full trajectories, `calculate_optimal_angle` to find the necessary launch angle for a specific distance, and `evaluate_target_success` to analyze hit probabilities based on target size and impact spread.

## Tools

### calculate_optimal_angle
Determines the necessary launch angle to hit a specific target distance

### evaluate_target_success
Analyzes the likelihood of a successful hit based on target characteristics

### simulate_flight_path
Calculates the full physical trajectory and key flight statistics for a single launch

## Prompt Examples

**Prompt:** 
```
Simulate a projectile launched at 50 m/s with a 45 degree angle, 0.1 drag, 1kg mass, and a target at 200m.
```

**Response:** 
```
The trajectory for the 50 m/s launch at 45 degrees shows a maximum height of 63.71 meters and a time to target of 7.07 seconds. The projectile reaches the 200m target with an impact velocity of 32.45 m/s.
```

**Prompt:** 
```
What angle is required to hit a target 500 meters away with an initial velocity of 100 m/s and no drag?
```

**Response:** 
```
The required launch angle to hit the target at 500 meters is 14.66 degrees.
```

**Prompt:** 
```
Evaluate if a projectile with a 2m target radius will hit if the impact spread is 1.5m.
```

**Response:** 
```
The hit probability is 1.0 and the projectile is within the target area.
```

## Frequently Asked Questions

**How does the simulator handle air resistance?**
The simulator uses a drag coefficient between 0 and 1 to model air resistance as a linear reduction factor on the horizontal velocity component.

**Can I specify custom gravity for different environments?**
Yes, you can provide a custom `gravityMs2` value in the `simulate_flight_path` tool; otherwise, it defaults to Earth's standard gravity of 9.81 m/s².

**How do I find the angle needed to hit a specific target?**
Use the `calculate_optimal_angle` tool by providing the initial velocity and the target distance.
