xadh00m
30-05-2008 08:52:48
Hi betajaen!
There seem to be some naming mistakes in your code snippet of Tony Rocky Horror on http://www.nxogre.org/shortguide_actors_and_dead_bodies:
I think "actors" should be "the_rockies" in line 3,4,5,6 an "actor" should be "NotRocky" in line 3.
Cheers
There seem to be some naming mistakes in your code snippet of Tony Rocky Horror on http://www.nxogre.org/shortguide_actors_and_dead_bodies:
Actors the_rockies;
Actor* NotRocky = mScene->createActor("Not Rocky", new CubeShape(1), Vector3(2,4,0), "mass: 15");
actors.Insert(NotRocky->getName(), actor);
actors.Insert("Rocky5", mScene->getActor("Rocky5"));
Actor* Rocky5 = actors.Get("Rocky5");
actors.Remove("Rocky5);
mScene->destroyActor("Rocky5");
I think "actors" should be "the_rockies" in line 3,4,5,6 an "actor" should be "NotRocky" in line 3.
Cheers