|
| 04 Oct 2013 08:26 PM |
Hey guys, I'm still trying to figure out trig and its relation to ROBLOX.
If I do :
math.tan(1)
what actually occurs?
What math is happening that returns 1.5574077246549?
If you're really bored, could you mind explaining the same thing for math.cos and math.sin too? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
bombpaw
|
  |
| Joined: 15 Mar 2009 |
| Total Posts: 3484 |
|
|
| 04 Oct 2013 08:34 PM |
| Do you really need to ask us this? There are wikis everywhere. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:35 PM |
math.Tan GIves a number a Good sun tan :D and IT return's how Taned it is out of 5 :o math.Sin Sin's too jesus for aa Sacrise and It return's how many sin's U Have math.Cos Make's a number Cosmetic So astronaut's are Easier work :o |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:35 PM |
No, the logic behind you posting this is nonsense. You could have easily searched up this question, and gotten a quicker and more explanatory accurate answer. Yet, in spite of you knowing this, you went and posted this anyways. Congratulations thedestroyer115, you've just done what you and everyone else complains about: spam. |
|
|
| Report Abuse |
|
|
| |
|
129K
|
  |
| Joined: 23 Aug 2011 |
| Total Posts: 19010 |
|
| |
|
|
| 04 Oct 2013 08:37 PM |
| Yes, because this 'low-grade' and 'inexplicably horrible' post somehow reduced the quality in this oh so non-over-spammed subforum. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:40 PM |
Do you honestly believe that the current status of this forum section gives you the right to post whatever the hell you want? Please never post again. Not with that logic. |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 04 Oct 2013 08:40 PM |
| thedestroyer strikes again with a stupid post. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 04 Oct 2013 08:42 PM |
Imagine a Right Triangle.
Let's say we have an angle (t) directly right of the right angle. And we know the side lengths.
The hyp is the hypotenuse The adj is the adjacent side ("next to" the angle we are using) The opp is the opposite side ("across" the angle we are using)
So, if you don't know this already: sin = opp/hyp cos = adj/hyp tan = opp/adj
(Soh Cah Toa is what I used to remember it by)
It's hard to explain with plain text though |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 04 Oct 2013 08:44 PM |
There are numerous concepts behind what can actually happen. How it applies to what you do in ROBLOX is also, sort of, arbitrary and based on what you are doing.
To put it visually and simply, they solve things having to do with right triangles. Things being, angles or side lengths.
Tangent of theta = Opposite side/Adjacent side Cosine of theta = Adjacent side/Hypotenuse Sine of theta = Opposite side/Adjacent side
Notice how, by knowing at least two of these variables, you can solve for something. You know which side is the opposite or adjacent in a right triangle depending on where the angle of theta is (it shouldn't be the right angle).
So, here's an example you could do in ROBLOX:
Let's say we have two parts on the same Y axis. You want to find the position that is directly in the center of them but also raised 30 degrees. First, imagine a line connecting these two parts. Now cut it in half (the center between them) and imagine a second line going straight up. You've now got two imaginary lines that form an upside down T (perpendicular lines).
With this, you can form a right triangle (the hypotenuse leads down to one of the two parts you have). So what are we finding? We are finding the opposite side (it's opposite from the angle we are wanting to raise the part at). So _tangent_ includes or adjacent (the bottom line) and the opposite. Let's plug in the value:
tan( math.rad(30) ) = opposite side/(distance_between_parts/2) Solve that by: tan( math.rad(30) ) * (distance_between_parts/2) And you get the height (opposite side) that you should raise the part after putting it in between your two main parts to have it raised 30 degrees. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:45 PM |
Don't reply to the post, because this is apparently spam.
Even though I am talking about Lua, it is definitely spam!
Let us go talk about some new feature for one day, then never post anything for fear of flaming, even though we're discussing Lua!
GENIUS!
Really quite disappointed guys.
If you are expecting better quality posts, you better leave ROBLOX now, because this post is better than 95% of the other posts that will ever be made here.
|
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:46 PM |
(Whoops, I was ninja'd by nice people, who are actually helpful) (previous post was not directed towards them) |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:48 PM |
| Here, please, take my eyeballs. I won't need them anymore since they fell out because of this thread, |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:49 PM |
Remember this.
In trigonometry, all the formulas are somehow related to a triangle, especially right angle triangles. A lot of early trigonometry is finding one of the angles between two sides.
There are 3 sides on a right angle triangle, there's the hypotenuse, which is always the longest side, there's the adjacent side, which is always next to the angle being measured, and then there's the opposite, which is always opposite from the angle.
http://www.roblox.com/RightTriangle-TL-item?id=45718879
If we were measuring the angle at the bottom left, the adjacent would be the side to the left, the opposite would be the side at the top, and the hypotenuse would be the side going across.
Why is this important? The trigonometric ratios, sine, cosine, and tangent are based on these side lengths.
sin θ = opp/hyp cos θ = adj/hyp tan θ = opp/adj
A way of thinking about it is that sine and cosine give you the Y and X components of a unit vector, respectively. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:51 PM |
@MrNicNac Okay, that makes sense. Thank you.
So lets say I knew two angles (and therefore three), would I be able to figure out the lengths of all the sides?
A | \ B-C
B = 90 C = 70 A = 20
What would I do from there?
So, let's say I am looking at this from angle B
If I wanted to find the adjacent side length what would I do? |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2013 08:53 PM |
@awsum Okay. So
sin θ = opp/hyp
What side length would that give? The opposite side length? The adjacent side length? |
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 04 Oct 2013 08:59 PM |
So, basically, tan, cos, and sin are used to find the angles when given lengths of sides?
|
|
|
| Report Abuse |
|
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
|
| 04 Oct 2013 09:00 PM |
Okay, so I guess this is what I am not understanding.
You're giving math.sin only one number. But to find a length using sin you'd need to angles.
What am I missing? |
|
|
| Report Abuse |
|
|