Hi,
I was having problem in introducing iphysics in my program but now that ok. thank to the forum. But now im getting another problem. My program compile well no errors... but when it initialised it stuck on this line
my mesh is a static mesh created with 3DS max 8 export to ".obj" with some texture the i use irredit for a better lookin of theenvironment .THe name I've give to the mesh in irrEdit is "city" . then the code continues for some collision stuff. The code are as follows:
You load the scene, find a node named 'city', get the animated mesh used for the node named 'city', then create a new animated mesh scene node using that mesh? Are you absolutely sure this is what you want to be doing, creating a duplicate of the 'city'?
Oh, sorry, I didn't mean to imply that I was providing a solution to your problem. I was just commenting that you are creating a new scene node when it didn't appear that you would want to be doing that. I don't use IPhysics, so I don't really know what the problem could be.
I'll take a guess though. I'm assuming that the addEntity code builds up some sort of bounding heirarchy for collisions. This may take some time to do if your mesh is really big.
I had problems with casting to IAnimatedMesh from IMesh too.
But i solved the problem by importing my levelmesh as animated mesh and not as normal mesh in the irrEdit.
So i didn't get a casting error, but i don't collide anyway with this mesh?!
I tried collision with boxes before and everything works, except of collision with this mesh.
anyone can tell why?
(notice: m_node is an ISceneNode, i imported as .obj animated mesh file in the irrEdit)