Grouping models (Array?)
Grouping models (Array?)
I'm making a RTS (real-time strategy) game, and I have it setup so you command small fleets of star fighters. How would I go about grouping a lot of fighters together so they move as one and such? Like a model array or something...if one exists.
Could you be more specific? My game crashes when I try to move the node.
Here's how I'm trying to do it...
[/code]
Here's how I'm trying to do it...
Code: Select all
scene::ISceneNode* parent = 0;
sm->addEmptySceneNode(parent);
model->setParent(parent);
parent->setPosition(core::vector3df(0,0,0));
I think it is
Code: Select all
scene::ISceneNode* parent = sm->addEmptySceneNode();
model->setParent(parent);
parent->setPosition(core::vector3df(0,0,0));
here is example (shoot em game)
mothership is build by this tech.
(cannot read readme in this zip? yes shouldbe. cos written in japanese)
http://gamdev.org/up/img/955.zip
mothership is build by this tech.
(cannot read readme in this zip? yes shouldbe. cos written in japanese)
http://gamdev.org/up/img/955.zip