generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: For treyreynolds

Previous Thread :: Next Thread 
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 03:36 PM
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
]]
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
09 Nov 2013 04:02 PM
this is what PMs are for.
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 04:10 PM
Yeah but other people can also use these.
Report Abuse
YEGGOR is not online. YEGGOR
Joined: 02 Apr 2013
Total Posts: 1150
09 Nov 2013 04:15 PM
"For treyreynolds"
Report Abuse
Rusemaster is not online. Rusemaster
Joined: 17 Sep 2013
Total Posts: 34
09 Nov 2013 04:46 PM
WEEWOOWEEWOOWEEWOO
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 04:46 PM
TO ALL DEM CNTKILLME'S
Report Abuse
Miyua is not online. Miyua
Joined: 18 Oct 2013
Total Posts: 12
09 Nov 2013 04:49 PM
roblox.com/--item?id=130844390
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 04:50 PM
https://www.youtube.com/watch?v=hcHnvTozc5M
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 04:52 PM
--[[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
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 04:55 PM
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?




Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 04:55 PM
After
1 stud = .3048 meters

I stopped reading, that's wrong
Stravant said 1 stud = 1/20th of a M
Report Abuse
Miyua is not online. Miyua
Joined: 18 Oct 2013
Total Posts: 12
09 Nov 2013 04:56 PM
^
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 05:01 PM
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.
Report Abuse
Rusemaster is not online. Rusemaster
Joined: 17 Sep 2013
Total Posts: 34
09 Nov 2013 05:02 PM
Use your godly mathematical talent to figure it out.
Velocity and direction unit vectors.
Report Abuse
soupsoupsoup3 is not online. soupsoupsoup3
Joined: 31 Jul 2013
Total Posts: 219
09 Nov 2013 05:02 PM
These are pretty interesting. Tracking this thread
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 05:03 PM
nope, you are incorrect
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 05:05 PM
CFrame.lookVector?
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 05:39 PM
x Side velocity of 100 = (100, 0, (Rotaion.y * 2.222222))

This works perfect :)

Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 05:40 PM
Rotation.y*
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 05:43 PM
Can you like PM, or go to OT.
Report Abuse
tenalsaurusrex is not online. tenalsaurusrex
Joined: 15 May 2011
Total Posts: 15334
09 Nov 2013 06:12 PM
You are all pathetic.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 06:14 PM
sdfu tenol
Report Abuse
weewoo5 is not online. weewoo5
Joined: 25 Oct 2009
Total Posts: 2281
09 Nov 2013 06:32 PM
--[[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.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 06:34 PM
Stop annoying person
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2013 06:35 PM
this "treyreynolds" guy is not here, so PM him
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image