Staredit Network > Forums > SC2 Custom Maps > Topic: Trigonometry Cannon Concept
Trigonometry Cannon Concept
Oct 25 2013, 12:18 am
By: Bolshevik09  

Oct 25 2013, 12:18 am Bolshevik09 Post #1



- Overview -
Using the law of Sines, this concept shows a accurate simple way to have missile-to-wall collision.
Using basic trigonometry, this is achievable.
Please use this concept in your map if you will. Please credit this system if you do use it.

- How it works -
A player controls a unit such as a Photon Cannon in a rectangular battlefield with 4 corner points.
When the unit attacks, 4 if/then/else actions, determine which side of the battlefield the angle of attack is within. (which wall the missile will contact)
The triggers will then create a virtual triangle to determine where the missile will go. 9 variables consisting of 3 sides, 3 points and 3 angles.
The first point is the location of the Cannon, the second is a corner of the battlefield, and the third is the impact location. (what we are solving for)
The first side is distance from the cannon to corner, the second and third are from cannon to impact and impact to corner. (unknown lengths)
The first angle is the angle from the cannon to the corner contrasted to 0 degrees, the second is from the corner to the cannon contrasted to 0 degrees, and the third unknown.
Using the law of Sines and knowing Angle Side Angle, we can find the missing variables.
Then the triggers will simply create a missile unit and send him to the third point for impact. Voila!

This method uses very little system resources and is 100% accurate.
I've uploaded a demonstration map to battle.net to see for yourself. [Trigonometry Cannon Concept, by bolshevik09]
Please try it out and leave feedback on this forum. Thank you!

You can view pictures here



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2023-12-09. : 1:16 am]
NudeRaider -- Dem0n
Dem0n shouted: who said you were crossing a line
NT kinda did Ultraviolet
Ultraviolet shouted: I always thought it was kind of messed up to impersonate someone without their permission, but I guess that's artistic license for you. When you get into the realm of using AI to do it.. it seems even worse to me, but I'm not sure why
[2023-12-08. : 8:38 pm]
Zoan -- and tbh no, this is exactly the type of thing ai should be used for. Now if you were monetizing it, I would say you should emohasize you used ai for the voicelines
[2023-12-08. : 8:29 pm]
Zoan -- he asked if "am I now crossing a line"
[2023-12-08. : 7:43 pm]
Dem0n -- who said you were crossing a line
[2023-12-08. : 2:24 pm]
Oh_Man -- but if i want to make a LOTR map and use AI generation to give aragorn etc more voice lines am I now suddenly crossing a line? wen did we get so snowflakey
[2023-12-08. : 2:23 pm]
Oh_Man -- well we been doing dodgy stuff in SC for ages playing resident evil and helms deep maps - we dont own the rights to them
[2023-12-06. : 8:46 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: Ultraviolet absolutely. You can count me among those folks. ;) But I understand it. It's a silly name only kids find funny. However to know that and still own it that would be the manliest move in my eyes.
Yeah, I can appreciate that perspective. I've used so many handles over the years, I think I had less attachment to NerdyTerdy than some of the folks here. Just never changed my name much here cause it was expensive :P I still kind of like the NT name, but definitely prefer Ultraviolet. I think UV has been my handle for around half my life at this point O.o
[2023-12-06. : 6:34 pm]
NudeRaider -- So the question is will we as a society become resilient against these forms of attacks? Either by detecting or accepting? Find new ways to deal with it? I guess we will have to wait and see.
[2023-12-06. : 6:32 pm]
NudeRaider -- da real donwano
da real donwano shouted: Society is not ready for the AI power we're being given. I'll die on that hill.
"social media" is imo a much better example for "society was not ready for it". We haven't seen yet where AI will lead us. It has a lot of potential for good, but then again, so had social media. For now the only potential for abuse in AI that I see is in forgery of various kinds.
[2023-12-06. : 6:26 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: guys what are your thoughts on AI voice cloning vs someone doing impressions. why is one moral and the other immoral? or do you think both are fair game
For me it's the intent that make the difference, not the method. If you copy someone for profit or harm, then that's immoral. If your goal is satire then all bets are off. I think people are just afraid to be deceived because AI removes skill from the equation and painting AI usage as immoral is their weak attempt to defend against it.
Please log in to shout.


Members Online: da real donwano, Wing Zero