Oct
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


28 Comments + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.