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,388 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
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