Gamestudio Links
Zorro Links
Newest Posts
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 2,814 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c_trace, when hull moves below ground.... #178448
01/18/08 12:08
01/18/08 12:08
Joined: Nov 2007
Posts: 50
C
Chaeon Offline OP
Junior Member
Chaeon  Offline OP
Junior Member
C

Joined: Nov 2007
Posts: 50
the lite_c manual states only that c_trace returns a positive value when a polygon is struck normally, and a negative value if it is struck from behind. when i USE_BOX, tho, and trace down past the ground, and my entity's hull penetrates the ground, the returned value bcomes negative good and well, but also around 100 times what is expected. why is this, and if i might resolve it, how? like, are negative c_trace returns multiplied by some mysterious internal variable, in the same way shift_sense works, or something?


I HEART 3DGS
Re: c_trace, when hull moves below ground.... [Re: Chaeon] #178449
01/18/08 12:12
01/18/08 12:12
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
When you use c_trace to determine how far your entity is from the ground, if you then use the value to move your entity, move your entity 3-5 quants above the ground, to keep it floating to avoid the hull colliding with the ground.

Alternativly before the c_trace
my.z += 10;

then after the c_trace
my.z -= 10;


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