Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / SC_rayCast and SC_intersectObject - functionallity questions

Author
Message
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 10th Dec 2012 15:14
Will these two commands return true if the line crosses an objects bounds, even if it wents straight thru an object?

In the help files for both of these commands there is a statement saying that they don't collide with backfaces. What does that mean?

Best!

www.memblockgames.com
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 10th Dec 2012 16:59
Quote: "Will these two commands return true if the line crosses an objects bounds, even if it wents straight thru an object?"


Yes.

Quote: "In the help files for both of these commands there is a statement saying that they don't collide with backfaces. What does that mean?"


Polygons can only be viewed from one side. The ray casted will only collide if you cast it from the side the polygon is visible.

TheComet

Fallout
23
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 10th Dec 2012 22:42
Quote: "Polygons can only be viewed from one side. The ray casted will only collide if you cast it from the side the polygon is visible."


Exactly. i.e If you start your ray from inside a cube and then cast it to a point outside a cube, it won't collide as the only face it'll hit will be the internal/backface/non-visible face of the cube.

Login to post a reply

Server time is: 2026-07-07 07:36:07
Your offset time is: 2026-07-07 07:36:07