Author Topic: Slope Formula for Ramps  (Read 4065 times)

I had no use for it except in class.
Clearly you do have a use for it.
Maybe you shouldn't be so quick to dismiss things as "I'LL NEVER USE THIS!"

Clearly you do have a use for it.
Maybe you shouldn't be so quick to dismiss things as "I'LL NEVER USE THIS!"
You're not helping me, why do want to argue with me. So what if I forgot what rise over run was, I had n idea but mostly I didn't know what to put in for rise and run. I didn't know how I was to measure the height and length but then I remembered I could use 1x1 bricks to measure
« Last Edit: December 24, 2012, 08:14:48 AM by Altiris »


Oh I thought that was to calculate slope.
Slope is rise over run
This stuff is extremely fundamental in pretty much any math class, so I have absolutely no idea why you wouldn't know this. How about instead of getting defensive, you maybe read up on slope and rise over run.

Slope is rise over run
This stuff is extremely fundamental in pretty much any math class, so I have absolutely no idea why you wouldn't know this. How about instead of getting defensive, you maybe read up on slope and rise over run.
I already read a bit on it, I knew what it was I just didnt know what to substitute it with, you didn't tell me either so you shouldn't be saying anything. I figured out a while ago yesterday what to substitute them with.

According to you, that formula gives me slope and converts it to Vector? or no?

I'm really not going to waste any more time trying to make you understand something obvious, this will be my last post in the topic.

My final bit of advice: Find out what slope is before you try to find out how to get it, the definition of slope will tell you exactly how to get the slope

I'm really not going to waste any more time trying to make you understand something obvious, this will be my last post in the topic.

My final bit of advice: Find out what slope is before you try to find out how to get it, the definition of slope will tell you exactly how to get the slope
Thing is my friend who is the coder is asking for this, and after I keep telling him the formula he says then he needs it from Slope to Vector because Roblox doesn't use degrees on their ramps/wedges, he says he doesn't want to use presets in the script so he wants a formula for everything.
« Last Edit: December 24, 2012, 10:46:59 AM by Altiris »

Thanks for your help though guys

You keep using the term slope when it's the angle you want.

Angle to vector:
So use regular tangent

mTan(angle) = rise / run

run * mTan(angle) = rise
rise / mTan(angle) = run


However trigonometric equations like this require the length of one of the legs, not just the angle.

Thing is my friend who is the coder is asking for this, and after I keep telling him the formula he says then he needs it from Slope to Vector because Roblox doesn't use degrees on their ramps/wedges, he says he doesn't want to use presets in the script so he wants a formula for everything.
What kind of ramps does Roblox have? How is the angle determined?

You keep using the term slope when it's the angle you want.

Angle to vector:
However trigonometric equations like this require the length of one of the legs, not just the angle.
I told him this but it's technically my fault because I just showed him that I got 1.33 as answer from the formula but didn't show him the formula, let me show him this and see what he says.

If the brick height is 1 unit the bottom lip is 0.2224 units.

If the brick height is 1 unit the bottom lip is 0.2224 units.
Um, not sure what you mean, you mean like the last part of the slope? I understand the formula and its working I think, it just has to be put in a script.