Shoot your objects with ballistics or animate them. All with just one line of code or a Visual Scripting node.Links: Manual | Support Forum"Hit Me" is a projectile system with two modes of movement:A) Animation (full control)B) Ballistics (shoot like a cannon)😎 Easy to useNo coding skills required. Simply add a component and you are ready to go.💫 AnimationTell the projectile what to hit and how long it should take. And while you are at it add some curves to make the flight path more interesting. Your target is moving? No problem. All curves will strecht accordingly.You will have full control. No physics will skrew up your movement. Though you can set it to instantly enable physics if a collider is hit.🎯 BallisticsShoot like a cannon. Let the projectiles be controlled by the physics engine (2D or 3D).+ Prediction System: Let the code calculate where the target will be in the future and shoot there. It can even predict player motion (if not too chaotic).+ Flight path visualization: Render the path (or the predicted path) with a LineRenderer.+ Various calculation methods:By Time: Choose how long the projectile will fly.By Altitude: Choose how high the projectile will fly.By Speed: Choose how fast the projectile will be.By Angle: Choose the starting angle.By Energy: Autmatically chooses the optimal angle.[Experimental Feature] Conteracts Unitys physics simulation divergence*. Accurate to 0.2 units at a range of 1000 units. No need to increase the fixed delta time to hit your target!😺 Visual ScriptingSupports visuals scripting (formerly known as BOLT).📚 Lots of examples & documentationCheck out Kamgam/HitMe/Examples.✔️ Full Source CodeI publish this asset with full source code because as a developer I know how annoying it is to not have source code access. If you like it then please remind others to purchase the plugin. Don't just copy and paste it everywhere. Thank you ❤️✔️ Supports Unity 2021.2+, 2022, 2023, Unity 6, ... LTSIt may work with earlier versions too but those are not tested anymore.👇 Things you should know 👇 (Read this before you buy):There is an intro section in the manual. Please read it first.⚠️ This is not a system to spawn 100s or 1000s of projectiles at the same time. To do that you better use an optimized system (particles). There is no hard limit but the more projectiles you create the more performance it will cost. This asset focuses on versatility.There is no object pooling for projectiles included. Memory is allocated for every new projectile you spawn (new prefab + a copy of the config). If you want pooling then you will have to spawn (reuse) your prefabs manually and then use the PhysicsUtils to add the start velocity to the rigidbody.⚠️ Unity 2021.2 or higher is required (LTS releases strongly recommended).⚠️ The ballistics predictions are accurate only for friction and drag less environments until the first collision. If you want to simulate stuff like air resistance, wind or bouncing then you will have to do the necessary calculations yourself!*The ballistic simulation has a "compensateSimulation" flag. This tries to conteract the divergence between the mathematical formula and the physics simulation. However, since the physics simulation is an internal part of Unity it is not guraranteed to behave the same in all Unity versions. It has been tested in Unity 2021, 2022 and 2023. If you are seeing diverging results even with the compensation then turn it off and increase the physics fixed delta time in the project time settings.⚠️ This not a simulation framework. Don't expect this to be physically correct all the time. If you want to build a simulator you will have to dig into the math yourself.✍️ Usage1) Pick a source postion and a target position (or game object).2) Pick the projectile prefab.3) Configure the flight path4) Done.😎 HINT 1:You can save the configuration values in to assets to reuse them in multiple locations.🧐 HINT 2:There are many handy helper components (like auto destruction upon impact or alignment during fligt).🤠 HINT 3:The animation projectiles can be rotated during flight with the angle settings. Go wild!!!☎️ SupportIf you have any questions please write to office[at]kamgam.com. Please be patient, replies may take a few days. Please include your Asset Store Order Nr and the exact Unity version in your request. Please also try upgrading to the most recent LTS version before asking. Thank you.❤️ If you like this asset then maybe you'll like these too:⚙ Settings GeneratorOne Settings UI + API for all render pipelines.✂ Mesh ExtractorSeparate your assets into useful parts within seconds.🚧 Exclude from buildExclude any files and directories from build.