1. Calculists out there?

------=_NextPart_000_0007_01BDE731.60884900
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Anyone know how to plot trijectories given two points?=20
Any references?


------=_NextPart_000_0007_01BDE731.60884900
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Anyone know how to plot trijectories =
given two=20
points? </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>Any references?</FONT></DIV>

------=_NextPart_000_0007_01BDE731.60884900--

new topic     » topic index » view message » categorize

2. Re: Calculists out there?

Hi Johnny
What kind of trajectories do you mean? There are alot (infinite) that go through
any two points.
Bye
Martin

new topic     » goto parent     » topic index » view message » categorize

3. Re: Calculists out there?

-----Original Message-----
From: lithex <lithex at INTERGATE.BC.CA>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Thursday, September 24, 1998 1:19 AM
Subject: Re: Calculists out there?


Hi Johnny
What kind of trajectories do you mean? There are alot (infinite) that go
through
any two points.
Bye
Martin

Ah TRA-jectories so that's how ya spell't.

I mankin a game and I'd like to know how to plot TRA-jectories for a bomb
shell or
bullet, ya know?


                -/    \-
           /                 \
        /                        \
^^^%                         *%^^^         *pow the shell blasts him to
pieces!*
============================


Except that it needs to be on a 3d plane and process point by point (as it's
a real-time
stratagy game.)

I'd really appreciate any info on it.

    John Leith
    Red Dagger!

new topic     » goto parent     » topic index » view message » categorize

4. Re: Calculists out there?

Ok, in order to calculate trajectory, it is only necessary to know v, the
initial velocity, a, the initial acceleration (due to gravity), theta, the angle
of the initial velocity, and t, the elapsed time.

First, velocity at an angle can actually be expressed by two, independent
velocities -- in your case, one vertically  (or against the force of gravity),
and one horizontal (a force against the source of energy).

That is done by using trig.  sin(theta) = opposite/hypotenuse and cos(theta) =
adjacent/hypotenuse, such that sin(theta)*hypotenuse = opposite.  Where the
"hypotenuse" is the composite velocity(in your case, the initial velocity), and
the result, "opposite" is the vertical velocty.  Similar procedures are used
with cos to determine the horizontal velocity.

Gravity is always either -9.8 (negative, in meters) or -32 (negative, in feet).

So.

On a cartesion coordinate system (which is highly applicable to a monitor
situation), you resolve y and x by:

y = vt - 1/2gt^2
where v is the horizontal velocity as determined above, t is the elapsed time,
and g is either 9.8 or 32.
and:

x = vt
where v is the vertical velocity, and t is the elapsed time.
Note that while "v" is used in both cases, each "v" represents a different
velocity.

If you want just the calculation, then use a loop with x as the independent
variable to determine a path.

was this what you needed?

snortboy

new topic     » goto parent     » topic index » view message » categorize

5. Re: Calculists out there?

-----Original Message-----
From: Noah Smith <nhs6080 at UNIX.TAMU.EDU>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Thursday, September 24, 1998 11:17 PM
Subject: Re: Calculists out there?


so would this work?

-- measure calculates distance
procedure clac_trajectory(a,b)
    atom velocity,totaltime
    velocity = (b-a)/measure(a,b)
    velocity[3] = velocity[3] + measure(a,b)*gravity
end procedure

Thanks for all your help snort boy

    John Leith
    Red Dagger

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu