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
0 registered members (), 18,561 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
c_trace question #307987
02/01/10 06:50
02/01/10 06:50
Joined: Dec 2009
Posts: 71
N
ncc1701d Offline OP
Junior Member
ncc1701d  Offline OP
Junior Member
N

Joined: Dec 2009
Posts: 71
I want to retreive distance information from a ball to the floor and have a continuous update of its distance displayed
on my screen. the ball goes up and down using physics.
I am not sure but would I use c_trace to do this? A verticle trace? My inexperience at never done this I am not sure of the approach to solve this problem.
The use of "hit" implies to me I cant get continous information displayed. Not sure though. The example in manual doesnt help me much.
Any suggestions on how to do this? Do I need to use ACTIVATE_SONAR somehow? Looking for nudges to overcome brain freeze.
Thanks

Re: c_trace question [Re: ncc1701d] #308006
02/01/10 09:44
02/01/10 09:44
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
you want to know the distance between the ball and the ground?
if so, you can do a simple trace down from the ball position.
get the target (vector which is being set when the trace hit something), and do a vec_dist between target and ball. You'll know the exact quants between the floor and the ball then.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/

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