Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (kzhao, AndrewAMD, bigsmack), 824 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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