Very short Raycasts sometimes fail
Posted: Sun Feb 19, 2012 9:45 pm
Hi
I am using Bullet to do lots of raycasts against static objects.
Currently I have exactly one static box shape in my scene.
When I make raycasts of length 0.2 everything works as expected. However, usually I want to make raycasts of length 0.1. When I do that, roughly 1% of the raycasts that should report an intersection with the box, don't.
Is this a known problem? Could I be doing something wrong?
I was thinking that maybe if the raycast starts within very close proximity of an object, it might ignore that object entirely (due to skin-width or something). But so far I haven't found out how I could actually set an object's skin-width.
Additionally a general question: If a raycasts starts from within an object, is the object ignored ?
Thanks,
Jan.
I am using Bullet to do lots of raycasts against static objects.
Currently I have exactly one static box shape in my scene.
When I make raycasts of length 0.2 everything works as expected. However, usually I want to make raycasts of length 0.1. When I do that, roughly 1% of the raycasts that should report an intersection with the box, don't.
Is this a known problem? Could I be doing something wrong?
I was thinking that maybe if the raycast starts within very close proximity of an object, it might ignore that object entirely (due to skin-width or something). But so far I haven't found out how I could actually set an object's skin-width.
Additionally a general question: If a raycasts starts from within an object, is the object ignored ?
Thanks,
Jan.