Material names

odyeiop

19-03-2007 23:10:43

On the rayCaster->mHitBody-> I noticed you can get the name of the material that it's hitting. And that you can grab the entity->getMaterial()

Is it possible to get the index (or name) of the subentity of a mesh you are hitting?

what I would like to call is

int _hitM = rayCaster->mHitBody->(find the subentity)

writeF("mats.log", rayCaster->mHitBody->mEntity->getSubEntity(_hitM)->getMaterial()->getName());

I couldn't really seem to find a way to get the sub entity though. What sort of trace would it require from the contact point?