Going through wall despite setContinuousCollisionMode ?

runevision

31-05-2006 11:34:06

In our game you can throw a ball. Normally it bounces on all objects, but sometimes it goes straight through the walls in our treecollision-object. The wall is one-sided, since it's never seen from the other side. The floor is one-sided too, but we haven't had any problems with the floor.

We have a material pair for the ball and the default material (which the wall has) where we use:

mMatPairDefaultBall->setContinuousCollisionMode(1);

Shouldn't this prevent the ball from going through the wall? It isn't anyway. Is there anything to do about this?

Thanks in advance,
Rune

danharibo

31-05-2006 12:05:13

use the debugger. tip: f3

runevision

31-05-2006 12:11:55

use the debugger. tip: f3Eh, yeah. I often do. And I see the wall in wireframe. What do you mean exactly? As I said, the ball bounces on the wall most of the time as it should. It just occasionally doesn't.

Rune

danharibo

31-05-2006 13:57:29

hm... so can you pos a screen of the ball going through the wall?

GiDEoN

31-05-2006 14:58:47

use the debugger. tip: f3
Kinda useles post :cry:
1) TS may not be using the default framelisteners
2) TS did not ask howto show debugging lines
3) Why do you think that the TS doesn't know about this?
4) Etc

[ontopic]
I've the same problem with my app. I think my problem is that the collisionlines aren't applied correctly (might be a bug too in either newton/OgreNewt). Post some screenshots and some people might be able to pinpoint it :lol: