Gamestudio Links
Zorro Links
Newest Posts
Fun Arcade Car Physics (nfs style)
by rayp. 07/25/26 00:35
What are you working on?
by rayp. 07/24/26 22:58
Z9 getting Error 058
by madpower2000. 07/22/26 14:01
ZorroGPT
by TipmyPip. 07/21/26 17:54
New Zorro version 3.11
by jcl. 07/21/26 13:42
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 1,852 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 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