hasFloor(false); --> the floor is still there?

SONB

06-08-2006 20:27:35

Hi!

I'm trying to turn the floor off:

mScene->hasFloor(false);

But the floor is still there and my shape collides with it.

Do I something wrong?





::SONB::

betajaen

06-08-2006 20:46:41

Did you earlier on in the code add a floor, because later on setting it to false won't do anything.

If you don't want a floor at all, just take out the line.


But: You are right, setting to false should remove a floor if it already exists. I'll put it into Preview 4.

SONB

06-08-2006 20:53:01

No, this is the first call of the function.


Ok, I'll take the line out.

Thanx betajaen! :D

betajaen

06-08-2006 22:17:32

I've added the new floor code in now, it uses a body instead of an NxActor, so it's more easier to trace and to delete.