S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
Some formulas you might find useful to increase realism:
--[[ Drag Coefficient Formula:
D = (2*F)/((p*v)^2)*A)
D = drag coefficient
F = force component in the direction of the flow velocity
p = mass density of the fluid
v = speed of the object relative to the fluid
A = reference area
Drag Equation:
F = ((((.5*P)*(V^2))*C)*A)
P = density of the fluid
V = speed of the object relative to the fluid
C = drag coefficient
A = cross-sectional area
Atmospheric pressure formula:
p = p1^(-1*(h1/h2)
p = atmospheric pressure
p1 = pressure at height 0 (On earth 1)
h1 = height
h2 = scale height (On earth 7)
dry air density formula:
p = x/(R*T)
p = air density
x = absolute pressure
R = gas constant for dry air
T = absolute Temperature
]] |
|
|
this is what PMs are for. |
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
Yeah but other people can also use these. |
|
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
TO ALL DEM CNTKILLME'S |
|
MiyuaJoin Date: 2013-10-18 Post Count: 12 |
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
https://www.youtube.com/watch?v=hcHnvTozc5M |
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
--[[Scales:
1 stud = .3048 meters
1 weight = 1 lb
]]
--[[ Drag Coefficient Formula:
D = (2*F)/((p*v)^2)*A)
D = drag coefficient
F = force component in the direction of the flow velocity
p = mass density of the fluid
v = speed of the object relative to the fluid
A = reference area
Drag Equation:
F = ((((.5*P)*(V^2))*C)*A)
F = drag
P = density of the fluid
V = speed of the object relative to the fluid
C = drag coefficient
A = cross-sectional area
Atmospheric pressure formula:
p = p1^(-1*(h1/h2)
p = atmospheric pressure
p1 = pressure at height 0 (On earth 1)
h1 = height
h2 = scale height (On earth 7)
dry air density formula:
p = x/(R*T)
p = air density
x = absolute pressure
R = gas constant for dry air
T = absolute Temperature
]]
--Settings:
Temperature = 72
DeathForce = 245 -- 25 g's (25 * 9.8 m/s)
AirSpeed = 0, 0, 0
Par = script.Parent
PlasW = .7
CorrW = 7.85
DiamW = 7.85
FabrW = .7
FoilW = 7.7
GranW = 2.691
GrasW = .9
IceW = .919
MarbW = 2.563
BrickW = 1.922
ConcW = 2.403
PebbW = 2.403
SandW = 1.602
SlatW = 2.691
WoodW = .35
PHeight = script.Parent.Size.y -- Height
PLength = script.Parent.Size.x -- Length
PWidth = script.Parent.Size.z -- Width
x = script.Parent.Velocity.x
y = script.Parent.Velocity.y
z = script.Parent.Velocity.z
rx = script.Parent.RotVelocity.x
ry = script.Parent.RotVelocity.y
rz = script.Parent.RotVelocity.z
while true do
Pressure = 1^(-1*(Par.Position.y/7))
AirDensity = Pressure/(53.3533*72)
xDragCoefficient = (2*(Par.Velocity.x * 3.2808))/(((AirDensity*(Par.Velocity.x - AirsSpeed.x))^2)*PLength)
yDragCoefficient = (2*(Par.Velocity.y * 3.2808))/AirDensity
zDragCoefficient = (2*(Par.Velocity.z * 3.2808))/AirDensity
xDrag = ((((.5 * AirDensity)*((x-AirSpeed.x)^2)* -- im busy finishing these please be quiet
end
|
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
How would I determine which side is the one facing the direction of movement:
__________________
| | side x ---> (movement direction)
How would I use a script to determine that side x is the one facing the direction of movement?
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
After
1 stud = .3048 meters
I stopped reading, that's wrong
Stravant said 1 stud = 1/20th of a M |
|
MiyuaJoin Date: 2013-10-18 Post Count: 12 |
^ |
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
Compare 20 studs to one character's height.
Last time I checked 1 meter isn't 3 times higher than me.
3.2808 studs comes about 3/5 of the way up to a character's head. Therefore, very realistic. Your hero is incorrect cnt. I hate to tell you. |
|
|
Use your godly mathematical talent to figure it out.
Velocity and direction unit vectors. |
|
|
These are pretty interesting. Tracking this thread |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
nope, you are incorrect |
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
CFrame.lookVector? |
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
x Side velocity of 100 = (100, 0, (Rotaion.y * 2.222222))
This works perfect :)
|
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
Rotation.y* |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Can you like PM, or go to OT. |
|
TenalJoin Date: 2011-05-15 Post Count: 18684 |
You are all pathetic. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
sdfu tenol |
|
S1xtyJoin Date: 2009-10-25 Post Count: 4491 |
--[[Scales:
1 stud = .3048 meters
1 weight = 1 lb
]]
--[[
x Side velocity of 100 = (100, 0, (Rotaion.y * 2.222222))
]]
--[[ Drag Coefficient Formula:
D = (2*F)/((p*v)^2)*A)
D = drag coefficient
F = force component in the direction of the flow velocity
p = mass density of the fluid
v = speed of the object relative to the fluid
A = reference area
Drag Equation:
F = ((((.5*P)*(V^2))*C)*A)
F = drag
P = density of the fluid
V = speed of the object relative to the fluid
C = drag coefficient
A = cross-sectional area
Atmospheric pressure formula:
p = p1^(-1*(h1/h2)
p = atmospheric pressure
p1 = pressure at height 0 (On earth 1)
h1 = height
h2 = scale height (On earth 7)
dry air density formula:
p = x/(R*T)
p = air density
x = absolute pressure
R = gas constant for dry air
T = absolute Temperature
]]
--Settings:
Temperature = 72
DeathForce = 245 -- 25 g's (25 * 9.8 m/s)
AirSpeed = 0, 0, 0
Par = script.Parent
PlasW = .7
CorrW = 7.85
DiamW = 7.85
FabrW = .7
FoilW = 7.7
GranW = 2.691
GrasW = .9
IceW = .919
MarbW = 2.563
BrickW = 1.922
ConcW = 2.403
PebbW = 2.403
SandW = 1.602
SlatW = 2.691
WoodW = .35
PHeight = script.Parent.Size.y -- Height
PLength = script.Parent.Size.x -- Length
PWidth = script.Parent.Size.z -- Width
x = script.Parent.Velocity.x
y = script.Parent.Velocity.y
z = script.Parent.Velocity.z
rx = script.Parent.RotVelocity.x
ry = script.Parent.RotVelocity.y
rz = script.Parent.RotVelocity.z
while true do
wait(.01)
Pressure = 1^(-1*(Par.Position.y/7))
AirDensity = Pressure/(53.3533*72)
xDragCoefficient = (2*(Par.Velocity.x * 3.2808))/(((AirDensity*(Par.Velocity.x - AirsSpeed.x))^2)*PLength * PHeight)
yDragCoefficient = (2*(Par.Velocity.y * 3.2808))/(((AirDensity*(Par.Velocity.y - Airspeed.y))^2)*PLength * PWidth)
zDragCoefficient = (2*(Par.Velocity.z * 3.2808))/(((AirDensity*(Par.Velocity.z - Airspeed.z))^2)*PLength * PHeight)
xDrag = ((((.5 * AirDensity)*((x-AirSpeed.x)^2)*xDragCoefficient)))
yDrag = ((((.5 * AirDensity)*((x-AirSpeed.x)^2)*yDragCoefficient)))
zDrag = ((((.5 * AirDensity)*((x-AirSpeed.x)^2)*zDragCoefficient)))
end
Finally figured out something close to enough to exposure area. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Stop annoying person |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
this "treyreynolds" guy is not here, so PM him |
|