Ask a Question related to Macromedia Director 3D, Design and Development.
-
+Dave- #1
request: 3d space ship game
I'm making a 3d space ship combact game but i've some problem with the control of the enemy ship (i can do an IA for it, but i can't think it).
Do you know some good SW 3d space ship game?
tnx
+Dave- Guest
-
How to build a cruise ship with Illustrator
For anyone who wants to see what a real pro can do with Illustrator (and some Photoshop), check out the following link. Apparently this was the... -
NAME SPACE REQUEST: Cluster::Run
Cluster::Run is a module which I've been working on for YAPC::NA::2004. I have the code nearly complete, but I'm still working on documentation. ... -
Auction Education -->E B A Y<-- merchant ship
This is a multi-part message in MIME format. --4__D09A2_8._ Content-Type: text/html; Content-Transfer-Encoding: quoted-printable <html> <META... -
Which options on a G5 would push ship date back to SEP 29?
As recently as 2-3 days ago, I read that orders placed for G5's were showing up with estimated ship date on or before August 29, 2003, having been... -
Take owner ship of previous Owners Files
After a Registry crash I had to reinstall the windows system and all the programs. SP1 will not install properly and gain access to various file... -
Desmond22 #2
Re: request: 3d space ship game
-- i've some problem with the control of the enemy ship (i can do an IA for it,
but i can't think it). --- WHAT??!! :)
not sure what you mean mate, but I have a bit of an interest in game ai so if
you could tell me a bit more I may be able to help.
Des
Desmond22 Guest
-
+Dave- #3
Re: request: 3d space ship game
i would like to know how to point the enemy ship to my ship, i've made an
algorithm, and it's work quite fine, but i would like to made a better
alghoritm.
this is my pointing alghoritm
if bersaglio<>oggetto.name then
if stato="punta" then
aux2.transform.interpolateto(oggetto.getworldtrans form(), 100)
aux2.pointAtOrientation=[vector(-1.0000, 0.0000, 0.0000), vector(0.0000,
1.0000, 0.0000)]
aux2.pointat(mondo.model(bersaglio).worldposition)
p1=oggetto.transform.rotation
p2=aux2.transform.rotation
if (p1.x>=k and p2.x>=k) or (p1.x<k and p2.x<k) then
if p1.x>p2.x-k then
oggetto.transform.rotation.x=oggetto.transform.rot ation.x-k
else if p1.x<p2.x-k then
oggetto.transform.rotation.x=oggetto.transform.rot ation.x+k
end if
else if p1.x>=k and p2.x<k then
if abs(p1.x)+abs(p2.x)-k>=180 then
oggetto.transform.rotation.x=oggetto.transform.rot ation.x+k
else if abs(p1.x)+abs(p2.x)+k<180 then
oggetto.transform.rotation.x=oggetto.transform.rot ation.x-k
end if
else if p1.x<k and p2.x>=k then
if abs(p1.x)+abs(p2.x)-k>=180 then
oggetto.transform.rotation.x=oggetto.transform.rot ation.x-k
else if abs(p1.x)+abs(p2.x)+k<180 then
oggetto.transform.rotation.x=oggetto.transform.rot ation.x+k
end if
end if
if (p1.y>=k and p2.y>=k) or (p1.y<k and p2.y<k) then
if p1.y>p2.y+k then
oggetto.transform.rotation.y=oggetto.transform.rot ation.y-k
else if p1.y<p2.y-k then
oggetto.transform.rotation.y=oggetto.transform.rot ation.y+k
end if
else if p1.y>=k and p2.y<k then
if abs(p1.y)+abs(p2.y)-k>=180 then
oggetto.transform.rotation.y=oggetto.transform.rot ation.y+k
else if abs(p1.y)+abs(p2.y)+k<180 then
oggetto.transform.rotation.y=oggetto.transform.rot ation.y-k
end if
else if p1.y<k and p2.y>=k then
if abs(p1.y)+abs(p2.y)-k>=180 then
oggetto.transform.rotation.y=oggetto.transform.rot ation.y-k
else if abs(p1.y)+abs(p2.y)+k<180 then
oggetto.transform.rotation.y=oggetto.transform.rot ation.y+k
end if
end if
if (p1.z>=k and p2.z>=k) or (p1.z<k and p2.z<k) then
if p1.z>p2.z+k then
oggetto.transform.rotation.z=oggetto.transform.rot ation.z-k
else if p1.z<p2.z-k then
oggetto.transform.rotation.z=oggetto.transform.rot ation.z+k
end if
else if p1.z>=k and p2.z<k then
if abs(p1.z)+abs(p2.z)-k>=180 then
oggetto.transform.rotation.z=oggetto.transform.rot ation.z+k
else if abs(p1.z)+abs(p2.z)+k<180 then
oggetto.transform.rotation.z=oggetto.transform.rot ation.z-k
end if
else if p1.z<k and p2.z>=k then
if abs(p1.z)+abs(p2.z)-k>=180 then
oggetto.transform.rotation.z=oggetto.transform.rot ation.z-k
else if abs(p1.z)+abs(p2.z)+k<180 then
oggetto.transform.rotation.z=oggetto.transform.rot ation.z+k
end if
end if
end if
end if
byz
+Dave- Guest



Reply With Quote

