Jump to content

Coding challenge. Are you worthy?


Recommended Posts

I am trying to make a highly realistic sonic boom mechanic that will work in tandem with BahamutoD's Camera Tools mod as seen here http://forum.kerbalspaceprogram.com/threads/94171-1-0-Camera-Tools-v1-3-(compatibility-fixes)-May-16. Picture this, a sonic boom is caused by the compression of sound waves. that cant keep up with a supersonic object. when an object is at a supersonic speed, the sound waves coming from it form a cone behind the object. the only place you can hear any sound the plane makes is inside that cone. As soon as you enter the cone, the sonic boom is heard. The faster the object, the skinnier the cone. Here is a friendly pictureAdo3alcWrirvSXmr6pwqX1GH7OnNSxzcfSq7qT9z5WQ?size=1280x960&size_mode=2

This will be added to an update for my very simple Mach Gauge Mod. I am very inexperienced with c#, so ill never accomplish this even in my dreams. The only time I want the sound cone thing to be active is when you in fly by mode in camera tools. this is so standard third person view isn't effected. I have created a checklist of what the code should do

-should only work with cameratools active, and aircraft must be traveling supersonic

-plane sound only heard inside cone

-sonic boom sound effects I have four of them, just make it randomly choose and play one upon entrance of the cone of sound waves

-use vessel.mach to get mach number, dont calculate it please

if you have any questions let me know. I'll make sure all contributors get credit.

Also, if you give me code, will you please tell me how to implement it, like where to put it and such.

Thanks

Ryan

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...