Culled Triangles

Culled Triangles

Hey everyone! I'm stuck, and have a simple question:

Is it possible to request Havok to ignore culled triangles for routines such as castRay()? What I mean is that I want to allow the ray to pass through the back of triangles until it strikes a facing surface. Is this possible? I can't seem to find any mention of triangle culling in the documentation.

Normally, it wouldn't be an issue. But I use ray casts in my game editor to select objects that use Havok triangle meshes for collision. Since this issue is for my editor, I'm open to decent hacks if there is no better answer.

Thank you for any help!


3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Hi Bobby

Have you had a look at Physics/UseCase/CustomCollectors/BackfacesCulledRayHitCollectorDemo? This uses a custom hkpRayHitCollector, BackfacesCulledRayHitCollector, which ignores raycast hits if the normal of the raycast hit & the corresponding triangle normal are in opposite directions.

Amy Developer Support Engineer Havok

No I didn't. I searched through the documentation for culled triangles, but forgot to look through the demos. Thank you again for your help!

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui