Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Getting the next point on a line #338747
08/21/10 09:45
08/21/10 09:45
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
I use the c_trace to detect objects in front of the camera.
When the beam hits something i get the coords of the hit.
How can i get the next point's coords on the same line right behind the hit?
TIA

Re: Getting the next point on a line [Re: Aku_Aku] #338749
08/21/10 10:18
08/21/10 10:18
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
maybe you can do another c_trace but from the hit position of the last c_trace


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Getting the next point on a line [Re: painkiller] #338756
08/21/10 12:00
08/21/10 12:00
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
I tried. But sometimes it hits itself... The loop became infinite.

Last edited by Aku_Aku; 08/21/10 12:01.
Re: Getting the next point on a line [Re: Aku_Aku] #338757
08/21/10 12:24
08/21/10 12:24
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
not if you use IGNORE_YOU, the first c_trace sets a hit pos and a you pointer to the entity, so in the second c_trace you put IGNORE_YOU and it will ignore the entity that hit the previous c_trace


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Getting the next point on a line [Re: painkiller] #338758
08/21/10 12:29
08/21/10 12:29
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
I give try to that. Thanks. By the way, i need a solution and its would use that next point.
Turn back to the original problem, do you know the answer?

Re: Getting the next point on a line [Re: Aku_Aku] #338760
08/21/10 12:32
08/21/10 12:32
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
I think I don't understand your question.


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Getting the next point on a line [Re: painkiller] #338764
08/21/10 13:00
08/21/10 13:00
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
Please read careful my opening post.
I give here a link to a picture that shows the situation.
You can see a big cube and inside there are some lesser ones.
I started a beam and that hits the big cube surface. The hit has a point in the world and that lays on the beam (line).
I would like to know that adjacent point's coordinates, that lays also on the beam and is the next after the hit's point.

Edit: One more remark. If i use the IGNORE_YOU there is no more hit detection.



Last edited by Aku_Aku; 08/21/10 13:48.
Re: Getting the next point on a line [Re: Aku_Aku] #338769
08/21/10 14:55
08/21/10 14:55
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
You can try to set FLAG2 to the big cube, and in the c_trace use IGNORE_FLAG2


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Getting the next point on a line [Re: painkiller] #338770
08/21/10 15:04
08/21/10 15:04
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
We where discussing that topic previously on a feature thread.
(exactly for situations like this)


http://www.opserver.de/ubb7/ubbthreads.p...true#Post328955

Re: Getting the next point on a line [Re: Damocles_] #338771
08/21/10 15:17
08/21/10 15:17
Joined: Sep 2009
Posts: 987
Budapest
Aku_Aku Offline OP
User
Aku_Aku  Offline OP
User

Joined: Sep 2009
Posts: 987
Budapest
Thanks for point out, i'll read that.

Edit: I read all posts. Could you be so kind to give me help to point out which post has the answer to my question?

Last edited by Aku_Aku; 08/21/10 15:21.
Page 1 of 3 1 2 3

Gamestudio download | chip programmers | 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