Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,135 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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