Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,513 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: car AI path question [Re: Xarthor] #83725
07/31/06 01:39
07/31/06 01:39
Joined: Jun 2006
Posts: 86
Asia
xboy360 Offline OP
Junior Member
xboy360  Offline OP
Junior Member

Joined: Jun 2006
Posts: 86
Asia
Wow..wow..i'll try the code, tnx again alll! yaaayy yaaaayy yaaayy 8)


Happy Birthday!
Re: car AI path question [Re: xboy360] #83726
07/31/06 06:18
07/31/06 06:18
Joined: Jun 2006
Posts: 86
Asia
xboy360 Offline OP
Junior Member
xboy360  Offline OP
Junior Member

Joined: Jun 2006
Posts: 86
Asia
Ok it works! Yahoo!

But...(not again )..

since this is my 1st time to use trace, i dont know what vectors to input so it traces from its front.

I put:
action car
{
while(1)
{
vec_set(myfront,my.pos);
myfront.x += 10;
trace(my.pos,myfront);
etc...........................

I know x is front. But when i run, it doesn't change when the car is turning.
it uses the world position 'x', not local position 'x'. Oh no! what do i do?
Forgive me for being a bad programmer.


Happy Birthday!
Re: car AI path question [Re: xboy360] #83727
07/31/06 10:39
07/31/06 10:39
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Code:

action car
{
while(1)
{
vec_for_angle(myfront,vector(my.pan,my.tilt,0));
vec_normalize(myfront,10);
vec_add(myfront,my.x);
trace_mode = //insert trace mode here
trace(my.x,myfront);
//and so on
}
}



Page 2 of 2 1 2

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1