Object moves through wall with enough tilt

Hi,

I have created 4 static walls that surround my game, so that my object wont leave the screen. In the simulator everything works fine. However, when testing on an iPhone, the object gets stuck in the wall, and with enough tilt moves right through… I’ve tried 2 other threads with no luck, I’ve tried isBullet=true / isSleepingAllowed=false with no luck, I’ve tried e-mailing the support but the replies are always delayed 2-3 days… How do I go about fixing this??? My game is very depended on these walls and I assume many other games are also, there has to be a solution out there that I don’t know of…

My walls are set to static with 0 bounce and 9999 density

Thanks in advance, [import]uid: 30185 topic_id: 6304 reply_id: 306304[/import]

I just noticed something big! If I control my object with accelerometer, and choose to control the objects x/y with the accelerometer, the object moves through walls. But if I use applyForce, and change the force with the accelerometer, the object wont move through the walls!

Is there any way to make it work even when changing the objects x/y?? [import]uid: 30185 topic_id: 6304 reply_id: 21763[/import]

Does nobody have a solution to this??? I’m really stuck on this issue and can’t publish to app store without solving it first… [import]uid: 30185 topic_id: 6304 reply_id: 22384[/import]

Try putting newRects around your display area with zero alpha or with your image name and assign addBody as usual.

I used this when I had a similar problem. [import]uid: 33866 topic_id: 6304 reply_id: 22465[/import]

Yeah that’s how I do it at the moment. I’ve got 4 newRects that surround my screen with 0 alpha and they all got an addBody each :confused: They do work, to some degree though, the ball gets sticked to the walls at small tilt and moves through with much tilt… [import]uid: 30185 topic_id: 6304 reply_id: 22488[/import]