collision with a sphere
Posted: Mon Jan 23, 2006 9:27 pm
hi there
i'm working on 3d user interface that features circular buttons.
as i'm not into 3d modeling, i'm planning to use simple rectangles with a circular texture and have the outer parts transparent
the problem is to check if the mouse hovers across such a widget:
a ray cast from mouse position into the scene should be the solution, but it would cause a collision even if the transparent part of the texture is being hit
is there a way to have a boundingsphere around a scenenode or something like it? or any other simple way to solve this problem...?
thanks for any help
warden
i'm working on 3d user interface that features circular buttons.
as i'm not into 3d modeling, i'm planning to use simple rectangles with a circular texture and have the outer parts transparent
the problem is to check if the mouse hovers across such a widget:
a ray cast from mouse position into the scene should be the solution, but it would cause a collision even if the transparent part of the texture is being hit
is there a way to have a boundingsphere around a scenenode or something like it? or any other simple way to solve this problem...?
thanks for any help
warden