Hi all,
Just an easy question :
How can we use CollisionManager (getCollisionPoint for example) to determine the exact point of collision on a mesh for doing damage localisation (legs, heads, etc.) ?
Someone have an idea ?
Thanks for all !
For static meshes, just do it like in the collision tutorial.
But there is no fast exact collision test possible for animated meshes yet. Only bounding box test is possible. But if you want to program your own collision test, just do it, it wont be difficult I think.
You mean with static meshes? No problem, just like in the tutorial.
For animated meshes: Also possible, but you've got to make it somehow possible to update the triangles in the triangle selector. This is what is missing for doing triangle based collision detection with animated meshes.
with getMS3DJointNode i can get the bounding box of some joints (with milkshape models), with this bounding box i'll can check the ray and do localized damage