getting vectors for decals

mickey
Posts: 107
Joined: Fri Sep 19, 2008 6:08 pm

getting vectors for decals

Post by mickey »

Hi

I'm trying to follow a tutorial to generate a decal. It says I need a right vector, and one of the tutorial I'm following generates a right vector from a triangle/face.

I use tCollisionWorld::ClosestRayResultCallback with the function rayTest and apparently, the collision world point and normal is not sufficient in order to generate the quad, or is it?

I would use the contact manifolds but it does not contain the face collision information too.

Thanks for your help.