21
2012
Trajectory Test Scene 2.0
Using trajectory script from unity answers, this is a test for the Rampart prototype..
Would be nice to add the trajectory preview line also (I think I’ve seen that in the forums..) and some randomness or wind?
Red target mark is light projector, with custom image + modified blend mode in the projector shader (to make it brighter).
Wingdings-font has that target pointer character.
Version 2.0 (image#2)
– Added cannon tube rotation towards mouse
– Added cannon angle control with mouse scroll
– Added sounds (shoot & explosion)
– Explosion sound is delayed based on distance, not sure how to do exponential decay properly, now delay is: (exploDistance*exploDistance)*0.0001;
– Added particle effects, some rigidbodies on the ground, fog..
– Problems: Trajectory preview not accurate: used this code for spline: GetQuadraticCoordinates()) and this for the peak height calculation.
Webplayer:
http://unitycoder.com/upload/demos/TrajectoryScene/ (v1.0 – always shooting at 45 degree angle..)
http://unitycoder.com/upload/demos/Trajectory_scene2/ (v2.0)
Download source:
coming later..
—
Image#2: Updated version
Related Posts
28 Comments + Add Comment
Leave a comment
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
When is the source coming? I would love to implement this system in my game, as a side/minigame.
Added early bird (paid) download link.
Note: The trajectory preview line doesnt match the flying trajectory, but the hit target does.
Could you maybe upload this to the asset store as a “Completed Project”? I’d pay a couple bucks :]
I think its too bug’ed right now..(for example that preview trajectory doesnt match the actual route etc.)
Would be interested to buy this. Thanks
Is the source still available for purchase via paypal?
Yes, the automatic purchase link should work (if it doesnt, email me)
*But note that preview trajectory & actual ball trajectory doesnt match (it does hit the correct target position on ground, but it doesnt fly the exact same line.. as seen in that main image also)
about “Projectile motion”
http://forum.unity3d.com/threads/208397-Projectile-motion-strange-behavior
Trajectory – Easy & Accurate Trajectory Prediction (asset store)
http://forum.unity3d.com/threads/209531-Trajectory-Easy-amp-Accurate-Trajectory-Prediction
2D projectile trajectory prediction
http://forum.unity3d.com/threads/214252-2D-projectile-trajectory-prediction
Formula for firing projectile from elevated position:
http://forum.unity3d.com/threads/228915-Formula-for-firing-projectile-from-elevated-position?p=1523303&viewfull=1#post1523303
GetTrajectoryPoint() :
http://forum.unity3d.com/threads/237941-3D-Trajectory-prediction-of-a-sphere-with-linear-drag
Projectile Prediction System using a Mesh:
http://forum.unity3d.com/threads/176571-Projectile-Prediction-System-using-a-Mesh
physics calculations: (about drag)
http://forum.unity3d.com/threads/physics-drag-formula.252406/#post-1667628
projectile motion test (with sources) :
http://forum.unity3d.com/threads/projectile-motion-test.45398/
Projectile motion Unity 3D to always make a Hit to moving object:
http://lexiconhub.tk/index/game-programming/projectile-motion-unity-3d/#.U-KNgGNhJWV
Planning ballistic trajectories with air resistance for games
http://www.decarpentier.nl/ballistic-trajectories
Calculate Rigidbody Trajectory (with sources)
http://forum.unity3d.com/threads/calculate-rigidbody-trajectory.322377/
Calculating Lead For Projectiles
http://wiki.unity3d.com/index.php/Calculating_Lead_For_Projectiles
3D Curved Arrow
http://forum.unity3d.com/threads/3d-curved-arrow.357832/
Free bullet ballistics script
http://forum.unity3d.com/threads/free-bullet-ballistics-script.418325/
display projectile trajectory path in unity 2d or 3d
https://github.com/theappguruz/Unity-sample-code-to-display-projectile-trajectory-path
Project demonstrating in Unity how to fire a projectile at a target by either specifying its initial velocity or initial angle. Also draws out the projectile’s expected trajectory
https://github.com/IronWarrior/ProjectileShooting
Ballistic trajectory to travel between two points, and rotating a point around an axis
http://nic-gamedev.blogspot.com/2011/11/ballistic-trajectory-to-get-between-two.html
Learn how to make realistic bullets with bullet drop in Unity
https://github.com/Habrador/Unity-Ballistics-Tutorial
sample parabola (with height)
https://forum.unity.com/threads/generating-dynamic-parabola.211681/#post-1426169
Projectile Aim Prediction with Acceleration
https://gamedev.stackexchange.com/questions/149327/projectile-aim-prediction-with-acceleration/149612#149612
Solving Ballistic Trajectories
https://www.forrestthewoods.com/blog/solving_ballistic_trajectories/
trajectory line
https://github.com/Matthew-J-Spencer/Trajectory-Line-Unity