jamere
20-01-2009 15:22:35
Hi all,
I was wondering if there is something to convert quicky a manualObject to use it on NxOgre.
Maybe someone has the code somewhere?
And actually i would like to make a Breakout clone with NxOgre, and i would like to know if there is a way to make my Own body where when someone collide with my body it changes my color until it will be destroyed...
Maybe there is a state or a callback somewhere to tell my Body , it is colliding ?
Thanks, and sorry i'm new on NxOgre
I was wondering if there is something to convert quicky a manualObject to use it on NxOgre.
Maybe someone has the code somewhere?
ManualObject* manual = mSceneMgr->createManualObject("manual");
manual->begin("BaseWhiteNoLighting", RenderOperation::OT_LINE_STRIP);
manual->position(-100.0, -100.0, 0.0);
manual->position( 100.0, -100.0, 0.0);
manual->position( 100.0, 100.0, 0.0);
manual->position(-100.0, 100.0, 0.0);
manual->index(0);
manual->index(1);
manual->index(2);
manual->index(3);
manual->index(0);
manual->end();
And actually i would like to make a Breakout clone with NxOgre, and i would like to know if there is a way to make my Own body where when someone collide with my body it changes my color until it will be destroyed...
Maybe there is a state or a callback somewhere to tell my Body , it is colliding ?
Thanks, and sorry i'm new on NxOgre