
Advanced Turrets brings power, precision, and simplicity to your project for all of your turret and projectile needs.
AdvancedTurrets is backwards compatible with older Unity versions.AdvancedTurrets doesn't do anything special with rendering or pipelines - It's just a collection of basic materials and no textures. This will be compatible across just about any render pipeline!AdvancedTurrets – The Ultimate Rigidbody Turret Physics Solution!This package is a comprehensive solution for creating realistic turrets and functionally solving Rigidbody physics to allow for seemingly impossible results.AdvancedTurrets is a component-based turret API that is built on top of a high performance Mathematics and Kinematics framework designed specifically for solving motion prediction within a simulated space.ExamplesOver 25+ examples at release and I have a lot more coming. Throwing a baseball to someone, shooting at a clay pigeon, firing high velocity projectiles at incoming missiles, flicking a paper football into a trashcan across the room, or bending bullets around walls like in the Matrix.... all of these are at their core the same problem. They are rigidbody physics. All of these are fully solved with this package. These also just so happen to look really cool and with giant guns!Notably check out the Iron Dome example for a real-time projectile defensive grid system.MathematicsIncludes the AdvancedMathematics static library featuring static, deterministic, and closed-form solutions for:- Quartic polynomials (ax⁴ + bx³ + cx² + dx + e)- Cubic polynomials (ax³ + bx² + cx + d)- Quadraic polynomials (ax^2 + bx + c)- Offset Position/Quaternion rotations with constraintsKinematicsIncludes the AdvancedTurrets static library for simulating, visualizing, and most importantly intercepting Kinematic motion for destruction! Supports usage in both DeltaTime and FixedDeltaTime along with instantiated or observed objects.And More!Check out the video documentation for a look inside.No shortcuts have been taken, and zero compromises have been made.Fully DocumentedEverything is documented along with integrated tooltips for anything serialized within the editorRealtime onlyThis package functions purely in realtime and features zero iterators or estimations. It's only limited by floating point precision.Real Physics and CollisionsAdvancedTurrets relies strictly on physics/collider collisions. Nothing is fudged or forced. Zero compromises.Component BasedBYOT (Build your own turret) with AdvancedTurrets' low level components. Whatever turret you have in your mind, you can make it with various components. Muzzles, Beam Turrest, Kinematic Turrets, Actuators, Relays, Spawners, ColliderGroups, and more.Event BasedAll turret functions come with serialized events to easily extend with VFX/SFX and otherwise integrate with your projectGizmosVisualize everything that AdvancedTurrets is doing for you through its integrated Gizmos functions on all of its moving objectsFlexible Object PoolingAdvancedTurrets has its own powerful object pooling service which can be used from anywhere. Includes components for handling object pooling through serialized eventsFramerate independenceFramerate independence is built into AdvancedTurrets through its use of measuring time related errors from framerates. E.g. a gattling gun that fires 500 rounds per second will be flawlessly interpolated even when you don't have 500 frames per second.Native RandomizationDue to framerate independence, sometimes things can actually look a little too perfect.. Dial it back a bit with normally distributed randomization profiles to get out of uncanny valley and make things more believableTime independenceWant to use AdvancedTurrets components or libraries in Update? Sure!Want to use AdvancedTurrets components or libraries in a Coroutine? Sure!Want to use AdvancedTurrets components or libraries in FixedUpdate? Sure!All of these have different interpolations and things to consider, but this is done automatically for you so you don't have to worry about. Fire away!Optimized and Powerful Mathematics LibraryClosed form and deterministic solutions for both quartic and cubic polynomials (and quadratic, but is this feature worthy?)Fully Featured TurretsKinematicTurrets - lead targets and fire rigidbody projectiles that will collide with themBeamTurrets - fire raycasted lines aka "hitscan" at targetsFully Featured AmmunitionsProjectiles - Custom acceleration, optional Rigidbody gravity, and comprehensive gizmosBeams - Customize animations and raycast behaviours with gizmos.Made with loveI would love to hear feedback, collaborate, and revitalize creativity in this space. Please reach out to me on Discord or my listed email with any questions or concerns.