Page 1 of 1

getting vertexes/triangles based on frame

Posted: Thu Aug 23, 2007 2:10 pm
by blackbrand
I'm trying to get/make a routine for detecting collisions between objects based on where a certain part/triangle is.

I'm currently using .x models animated in blender with Ipo. i've separated my main mesh and my weapon mesh in different files.
Now i want to get the vertex or triangle information from the node (animatedscenenode) so i can do collision detection based with that data (for intersection with a transformed box or a center line)

now i have no idea how to do this because there are no accessors as far as i've seen. I'm guessing you have to dig around the pointers from the original code using unsafe content. But i have no idea where to begin.
if anybody could help me out it would be much appreciated