Hit Me: Ballistics, Animated Projectiles, Targeting
Shoot objects with ballistics or animate them with just one line of code or a Visual Scripting node.

* This page contains affiliate links, meaning we may earn a small commission if you purchase something through them, at no extra cost. $29.99
- Category:
- Tools › Physics
- Developer:
- KAMGAM
- Price:
- $29.99
- Favorites:
- 162
- Supported Unity Versions:
- 2021.3.5 or higher
- Current Version:
- 1.2.0
- Download Size:
- 2.01 MB
- Last Update:
- Sep 11, 2024
- Description:
- Hit Me is a projectile system with two modes of movement: Animation and Ballistics. Animation allows for full control over the projectile's movement, while Ballistics uses the physics engine to simulate the projectile's flight path. The system includes features such as prediction, flight path visualization, and various calculation methods. It also supports Visual Scripting and has a full source code available.
The system is easy to use, with no coding skills required. Simply add a component and you're ready to go. The Animation mode allows you to tell the projectile what to hit and how long it should take, and you can add curves to make the flight path more interesting. The Ballistics mode shoots like a cannon, using the physics engine to control the projectile's movement.
The system includes a prediction system, which calculates where the target will be in the future and shoots there. It can also predict player motion if it's not too chaotic. The flight path visualization feature renders the path or predicted path with a LineRenderer.
The system has various calculation methods, including time, altitude, speed, angle, and energy. It also has an experimental feature that counteracts Unity's physics simulation divergence, making it accurate to 0.2 units at a range of 1000 units.
The system supports Visual Scripting and has a full source code available. It's compatible with Unity 2021.2+, 2022, 2023, and Unity 6. It may work with earlier versions, but they are not tested anymore.
Please note that this is not a system for spawning hundreds or thousands of projectiles at the same time. It's designed for versatility, not performance. There is no object pooling for projectiles included, and memory is allocated for every new projectile you spawn. If you want pooling, you'll need to spawn and reuse your prefabs manually.
The ballistics predictions are accurate only for friction and drag-less environments until the first collision. If you want to simulate air resistance, wind, or bouncing, you'll need to do the necessary calculations yourself.
The system has a few limitations, including the fact that it's not a simulation framework and may not be physically correct all the time. However, it's a powerful tool for creating realistic projectile movements in your Unity projects. - Technical Details:
- The system includes the following features:
* Animation mode with full control over the projectile's movement
* Ballistics mode with physics engine simulation
* Prediction system for calculating where the target will be in the future
* Flight path visualization with LineRenderer
* Various calculation methods (time, altitude, speed, angle, energy)
* Experimental feature for counteracting Unity's physics simulation divergence
* Support for Visual Scripting
* Full source code available
* Compatible with Unity 2021.2+, 2022, 2023, and Unity 6
* No object pooling for projectiles included
* Memory allocated for every new projectile spawned
* Ballistics predictions accurate only for friction and drag-less environments until the first collision - Continue »