Please help with Physics and rotation

Hy all,

I have a simple game. Is a ball falling over some walls (like platform walls and floors), but the player can rotate the walls and the floors, (all this walls are inside a circle, and the player can rotate the circle).

The problem is that if I rotate the walls and the floors quickly, my ball cross the walls and the floors, like if there are not collision.

I set the walls and the floors as “static” and the ball as “dynamic”.

I please any kind of advise or suggestion.

Thanks [import]uid: 128859 topic_id: 30040 reply_id: 330040[/import]

I think you need to set the ball as a “bullet”. Then the collision detection is done more carefully (but at the expense of computation time). See the physics docs for bullet related APIs.
[import]uid: 84768 topic_id: 30040 reply_id: 120299[/import]

In addition, you might also find it helpful to set physics.setPositionIterations to a value higher than the default (which is 8).

  • Andrew [import]uid: 109711 topic_id: 30040 reply_id: 120300[/import]

Thanks,

Yes I try these but nothing. I also try all the possibilities to fix this that appears here:

Objects are going through walls: http://www.coronalabs.com/blog/2011/08/08/solutions-to-common-physics-challenges/

But nothing happens…

I´m reading that when the speed is big, is common to have bugs in Physics Objetcs.

Any other solution? [import]uid: 128859 topic_id: 30040 reply_id: 120302[/import]

I think you need to set the ball as a “bullet”. Then the collision detection is done more carefully (but at the expense of computation time). See the physics docs for bullet related APIs.
[import]uid: 84768 topic_id: 30040 reply_id: 120299[/import]

In addition, you might also find it helpful to set physics.setPositionIterations to a value higher than the default (which is 8).

  • Andrew [import]uid: 109711 topic_id: 30040 reply_id: 120300[/import]

Thanks,

Yes I try these but nothing. I also try all the possibilities to fix this that appears here:

Objects are going through walls: http://www.coronalabs.com/blog/2011/08/08/solutions-to-common-physics-challenges/

But nothing happens…

I´m reading that when the speed is big, is common to have bugs in Physics Objetcs.

Any other solution? [import]uid: 128859 topic_id: 30040 reply_id: 120302[/import]