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
1 registered members (TipmyPip), 18,038 guests, and 6 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
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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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 | 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