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,449 guests, and 6 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
trace question #80827
07/09/06 09:35
07/09/06 09:35
Joined: Jan 2005
Posts: 267
the Netherlands
Paulo Offline OP
Member
Paulo  Offline OP
Member

Joined: Jan 2005
Posts: 267
the Netherlands
Hi,

I want my player to trace forward looking for walls using trace.
But the temp coordinates seems to use the world coordinates.
The trace line isnt always tracing forwards from the players view.

I dont understand why, beaucose I used vec_set.
Maybe someone knowes more.

code:

vec_set(temp, my.x);
temp.x += 100;
trace_mode = IGNORE_ME + IGNORE_PASSABLE + IGNORE_MODELS + IGNORE_SPRITES;
trace_wall = trace (my.x, temp);
if(trace_wall != 0)
{
beep();
trace_wall = 0;
}

Thank you,


The more you have.. the more you can lose...
Dont tell em all you know.....
Re: trace question [Re: Paulo] #80828
07/09/06 09:41
07/09/06 09:41
Joined: Jan 2005
Posts: 267
the Netherlands
Paulo Offline OP
Member
Paulo  Offline OP
Member

Joined: Jan 2005
Posts: 267
the Netherlands
I got it working, sorry


The more you have.. the more you can lose...
Dont tell em all you know.....

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