Hi there!
I've got an animated IAnimatedMeshSceneNode build upon an MD2 Model file (sydney.md2 ).
My question:
Do I have to create a new ITriangleSelector every frame, to get the exact collision position?
Question about ITriangleSelector and animated models
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Question about ITriangleSelector and animated models
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
This is a very good question. I think that the triangle selector holds the triangles only but the collision response animator keeps trace of how the triangles are moved rotated or otherwise modified as in an animation.
I know this is the case for objects which are moved and rotated, as a while back I did a school project in which I moved and rotated an object and an object collided with the moved and rotated trinagles in various positions. Whether or not this is true for animated meshes I am not sure but I would imagine so. Just do a test and create an animated box that moves far from its position and try to collided something with it at various points in the animation.
I know this is the case for objects which are moved and rotated, as a while back I did a school project in which I moved and rotated an object and an object collided with the moved and rotated trinagles in various positions. Whether or not this is true for animated meshes I am not sure but I would imagine so. Just do a test and create an animated box that moves far from its position and try to collided something with it at various points in the animation.
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Hmm, I checked the Irrlicht source, but I don't find the feature. Perhaps I should ask Niko...
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Not jet, but I'll do it today and then report you.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer