cakecake
03-08-2009 03:32:19
Hi,all.
I created an actor,but it did not show on the screen.I am sure it had been created, because when I move my character to the position where I put the actor,
character struck,it seems the actor had been created but bot been rendered.
Maybe I missed something.Here is my code:
I try another code,but it didn't work.
And another question,I have a house mesh model,I want control my character walk through door and go into the house.How should I do collision detection with the house?
Thanks!!!
I use NxOgre0.9-38 ,Physx2.7.3 and Ogre 1.6.4
I created an actor,but it did not show on the screen.I am sure it had been created, because when I move my character to the position where I put the actor,
character struck,it seems the actor had been created but bot been rendered.
Maybe I missed something.Here is my code:
mActor=mScene->createActor("cube.1m.mesh",new NxOgre::CubeShape(20,20,20),Vector3(30,0,100), "mass:10");
I try another code,but it didn't work.
NxOgre:ShapeParams sp;
sp.setToDefault();
mActor=mScene->createActor("thebill",new NxOgre::TriangleMeshShape("thebill.mesh",sp),Vector3(20,5,60), "static: yes");
//"tebill.mesh" is a character model,it is a little complicated.
And another question,I have a house mesh model,I want control my character walk through door and go into the house.How should I do collision detection with the house?
Thanks!!!
I use NxOgre0.9-38 ,Physx2.7.3 and Ogre 1.6.4