Mail Archives: djgpp/1999/02/05/08:10:52
Message-ID: | <000101be5107$ebf86ca0$90afccc2@d9a9a4>
|
From: | "Linxman" <linxman AT polbox DOT com>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Re: 3D movement
|
Date: | Fri, 5 Feb 1999 00:34:22 +0100
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.1
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_00A9_01BE509F.46B769C0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
-----Original Message-----
From: Steve Axsom <sssaxsom AT smithville DOT net>
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Thursday, February 04, 1999 7:28 AM
Subject: 3D movement
=20
=20
I'm making a 3d game in allegro. Can anybody tell me how to make an =
airplanemove in the direction it's facing? THX
=20
=20
=
-Shane
=20
You can use vectors (3d of course). For example to move an object by =
a=20
vector do sth like this:
obj_x +=3D vector_x
obj_y +=3D vector_y
obj_z +=3D vector_z
=20
Read some tutorials on 3d math to find out more.
=20
Bye
=20
=
-------------------------------------------------------------------------=
-------------------
Daniel Mironowicz linxman AT polbox DOT com
ICQ 21963276
=
-------------------------------------------------------------------------=
-------------------
------=_NextPart_000_00A9_01BE509F.46B769C0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Dutf-8 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<STYLE></STYLE>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV> </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
</B>Steve Axsom <<A=20
=
href=3D"mailto:sssaxsom AT smithville DOT net">sssaxsom AT smithville DOT net</A>><B=
R><B>To:=20
</B><A href=3D"mailto:djgpp AT delorie DOT com">djgpp AT delorie DOT com</A> =
<<A=20
=
href=3D"mailto:djgpp AT delorie DOT com">djgpp AT delorie DOT com</A>><BR><B>Date:=20
</B>Thursday, February 04, 1999 7:28 AM<BR><B>Subject: </B>3D=20
movement<BR><BR></DIV></FONT>
<DIV><FONT size=3D2>I'm making a 3d game in allegro. Can anybody =
tell me how=20
to make an airplanemove in the direction it's facing? =
THX</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT=20
=
size=3D2> &nbs=
p;  =
; =
&=
nbsp; &n=
bsp; =20
-Shane</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>You can use vectors (3d of course). For example=20
t</FONT><FONT size=3D2>o move an object by a </FONT></DIV>
<DIV><FONT size=3D2>vector do sth like this:</FONT></DIV>
<DIV><FONT size=3D2>obj_x +=3D vector_x</FONT></DIV>
<DIV><FONT size=3D2>obj_y +=3D vector_y</FONT></DIV>
<DIV><FONT size=3D2>obj_z +=3D vector_z</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Read some tutorials on 3d math to find out=20
more.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Bye</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT=20
=
size=3D2>----------------------------------------------------------------=
----------------------------<BR>Daniel=20
Mironowicz <A=20
=
href=3D"mailto:linxman AT polbox DOT com">linxman AT polbox DOT com</A><BR> =
&=
nbsp; &n=
bsp; =20
ICQ 21963276</FONT></DIV>
<DIV><FONT=20
=
size=3D2>----------------------------------------------------------------=
----------------------------<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00A9_01BE509F.46B769C0--
- Raw text -