Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Ray/box intersection with c_intersect() #350932
12/20/10 14:06
12/20/10 14:06
Joined: Dec 2008
Posts: 271
Saturnus Offline OP
Member
Saturnus  Offline OP
Member

Joined: Dec 2008
Posts: 271
I'm trying to use c_intersect() for determining whether a ray intersects a bounding box.
I didn't have any luck with it, though.

This might by due to me not quite understanding a term in the function's description in the manual: Namely, I'm not sure how to interpret the term "ray distance vector".
But I don't want to rule out the possibility that there might be other reasons why it doesn't work.

I've posted a topic about this on the programming forums: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=350764#Post350764

Perhaps you could have a look?

Re: Ray/box intersection with c_intersect() [Re: Saturnus] #350935
12/20/10 14:30
12/20/10 14:30
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Thanks, we'll look into it. I had not tried it with a ray and a box, so the suggestion in the manual was purely theoretical - I only tested it with moving boxes. Maybe there's some reason that prevents it from working when the box is collapsed to one point.


Moderated by  old_bill, Tobias 

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