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,618 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
Tracing problems #140478
07/11/07 15:26
07/11/07 15:26
Joined: Jun 2007
Posts: 8
H
hammeraxe Offline OP
Newbie
hammeraxe  Offline OP
Newbie
H

Joined: Jun 2007
Posts: 8
HI!
I am trying to make my character walk up and down the stairs.


Code:
 
while(1)
{
vec_set(temp.x,my.x);
temp.z=-2000;
trace_mode=IGNORE_ME + IGNORE_MODELS + IGNORE_SPRITES+use_box;
dist_traced=c_trace(me,temp,trace_mode);
if(dist_traced>0)
{
c_move(me,vector(0,0,-10),nullvector,glide);
}
if(dist_traced<0)
{
c_move(me,vector(0,0,10),nullvector,glide);
}
//...and other movement commands



The tracing doesnt seem to work (dist_traced is 0 all the time)...

Could someone please tell me whats wrong?

Re: Tracing problems [Re: hammeraxe] #140479
07/11/07 16:10
07/11/07 16:10
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Can we see the rest of your movement code ??
It's more convenient that way

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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