Server Variables (Measurements)

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Strakowski
Private First Class
Private First Class
Posts: 79
Joined: Wed Jun 24, 2009 4:40 pm
Location: hiding somewhere in Overdoze

Server Variables (Measurements)

Post by Strakowski »

I was just looking at "Server Variables" on the wiki, and I noticed that the listing for the speed and jump velocities (tankSpeed and jumpVelocity) don't say what the units of measurement are, for either one :? . I'm doing some work with trampolines and quadratic parabolas, and I really need to know what these values signify.

I'm assuming that it's measured in worldUnits/second
but before I go ahead and make my projections, could someone verify this information?

Thanks!- Strakowski 8)
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Re: Server Variables (Measurements)

Post by dango »

Both are indeed in worldUnits/second
Image
User avatar
Strakowski
Private First Class
Private First Class
Posts: 79
Joined: Wed Jun 24, 2009 4:40 pm
Location: hiding somewhere in Overdoze

Re: Server Variables (Measurements)

Post by Strakowski »

Okay, thanks!
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Server Variables (Measurements)

Post by optic delusion »

the best place to find this type of info is http://shellshock.bzflag.bz/guides-bzscience.html
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
User avatar
Strakowski
Private First Class
Private First Class
Posts: 79
Joined: Wed Jun 24, 2009 4:40 pm
Location: hiding somewhere in Overdoze

Re: Server Variables (Measurements)

Post by Strakowski »

Oh, wow. That's awesome. This will be fantastic when planning maps. So glad you posted that.
User avatar
Strakowski
Private First Class
Private First Class
Posts: 79
Joined: Wed Jun 24, 2009 4:40 pm
Location: hiding somewhere in Overdoze

Re: Server Variables (Measurements)

Post by Strakowski »

Wait a sec... my formula is incorrect. My calculations are telling me that the default jumpVelocity would have to be a measurement of the [height at the peak of the jump].

I know that it takes 4 seconds to jump and the default jump travels 100 units. With a gravity of [9.8 units/second^2] and default speed of 25 units/second, the jump velocity can't be 19.
:?

My equation looks like this:

j(x/25)-9.8((x/25)^2)=y

If x is 100 and y is 0, j has to be 39.2.
I know I probably made an error, could someone disprove me? :) (or approve, but that seems unlikely; been a while since Algebra)
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Re: Server Variables (Measurements)

Post by Spazzy McGee »

I reckon I can disprove you. Hope you can read it, I proved all the information on the shellshock site: that the height of the jump is about 19 (actually, it's closer to 18), that the length of a jump is about 100 (it's actually about 95), and that the time for the jump is 4 seconds (actually 3.8). The bit you're after is the height, which is on the right hand side.

I apologise for the poor photos. I don't have a scanner.

Image

Most of the time, it's best to consider the horizontal and vertical components separately. I calculated the height of the jump separately from the distance travelled horizontally. All you need to remember to make things really easy, are your equations of motion:
v = u + at
v^2 = u^2 + 2as
s = ut + 0.5 at^2
They can solve any projectile problem, provided that air resistance is negligible.
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Re: Server Variables (Measurements)

Post by joevano »

Spazzy McGee wrote:I apologise for the poor photos. I don't have a scanner.
Reminds me of pictures of Einstein's notes... did you rip him off? ;)
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln
User avatar
Strakowski
Private First Class
Private First Class
Posts: 79
Joined: Wed Jun 24, 2009 4:40 pm
Location: hiding somewhere in Overdoze

Re: Server Variables (Measurements)

Post by Strakowski »

Oh great! I knew something was a little strange. These values are all working great! Next post I make should be on the Map Releases page!

Thanks a million!- Strakowski

P.S. I found my fault in the equation; I forgot to cut the gravitational constant in half. I wrote "-9.8X^2", it should have been "-4.9x^2".
Last edited by Strakowski on Fri Sep 18, 2009 12:10 pm, edited 1 time in total.
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Re: Server Variables (Measurements)

Post by Spazzy McGee »

Strakowski wrote: forgot to cut the gravitational constant in half
Acceleration due to gravity is not constant ;)
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
Strakowski
Private First Class
Private First Class
Posts: 79
Joined: Wed Jun 24, 2009 4:40 pm
Location: hiding somewhere in Overdoze

Re: Server Variables (Measurements)

Post by Strakowski »

:doh: (I think I'll go bang my head against the wall now)
Post Reply