Don't use SetParent! That function is not supposed to be called like
that. The API doc also says you shouldn't call it directly. Here is
* Set the parent movable. Usually you don't need to call this function
* yourselves as it is called automatically whenever you add some object
* to another parent (using iMeshWrapper->GetChildren ()->Add() for meshes).
So use GetChildren()->Add() instead.
On Sun, 20 Feb 2005 13:57:01 +0100, Martin Henne <martin.henne@...> wrote:
> Hi all,
> I have the following problem:
> I created a car (genmesh) which movable is the parent for
> four tires (also genmeshes). I used this code:
> which seams to work. I see the car and all tires, standing on
> their origin position. Later I move them with this code:
> which seams to work also. The car _and_ the tires move, but
> at the new position, the tires are only visible, when I move the
> camera to the border, so that a part of the car (e.g. the front
> part and the front tires) are outside the scene. Then the
> tires (those who are in the cameras view) appear.
> If I just look at the car in it's new position, I don't see any
> I had the same problem month ago using thingmeshes instead of
> genmeshes. So it must have something to do with movable or
> render priority or something like that.
> What could I have done wrong?
> Tnx in advance.
> http://www.martinhenne.de [get the public there]
Project Manager of Crystal Space (http://crystal.sf.net)
and CEL (http://cel.sf.net)