realbasic-games
[Top] [All Lists]

Bug? LineSegmentIntersection

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Bug? LineSegmentIntersection
From: Lo Saeteurn <realbasic at miensoftware dot com>
Date: Wed, 21 Sep 2005 09:15:17 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
Hi,

There seems to be a bug with the LineSegmentIntersection method for Bounds3D. Has anyone else experienced this or am I using it incorrectly?

According to the docs, the LineSegmentIntersection treats all bounding volumes as a spheres.

I'm trying to see if a sphere object is within a line segment (formed by 2 points in word coordinates), but the results it returns are incorrect. Some objects that should have intersected returned negative (or NIL). The same holds true for LineIntersection. Am I using it correctly?

I created my own line segment-sphere intersection code and that works perfectly fine. Either I'm using the internal method incorrectly or it is a bug.


Regards,
Lo Saeteurn
--
Lo Saeteurn
Mien Software
http://www.miensoftware.com


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>