Equivalent to Jitter3DUtils.intersect_line_quad in Lua

Feb 12, 2008 at 3:44pm

Equivalent to Jitter3DUtils.intersect_line_quad in Lua

Hi all,

Can anyone suggest an equivalent to Jitter3DUtils.intersect_line_quad for use inside jit.gl.lua?

I am currently using vec3.intersect_line_sphere and my hit tests are firing only in the sphere which is no good as i am generating planes and I loose the corners.

I have checked the vecmath functions available and the only one i can see for intersections is vec3.intersect_line_sphere.

Thanks.

Tim

#35780
Feb 12, 2008 at 5:23pm

It shouldn’t take too much work to port the function defined in the
JS. Look in C74/jsextensions/Jitter3DUtils.js.

wes

On Feb 12, 2008 7:44 AM, Timothy Devine wrote:
>
> Hi all,
>
> Can anyone suggest an equivalent to Jitter3DUtils.intersect_line_quad for use inside jit.gl.lua?
>
> I am currently using vec3.intersect_line_sphere and my hit tests are firing only in the sphere which is no good as i am generating planes and I loose the corners.
>
> I have checked the vecmath functions available and the only one i can see for intersections is vec3.intersect_line_sphere.
>
> Thanks.
>
> Tim
>

#122381

You must be logged in to reply to this topic.