What properties effect physics collisions ?

I am having a few issues getting the physics right in a game, basically collisions are not always happening and objects fly through each other.

Am trying to find out what properties I should be tweaking to find the ideal physics.

I have no gravity and both objects are set to bullets (thought that might help). Size wise, 1 object is 75 pixels and the other is 20. Basically am shooting the smaller objects at the bigger object to move it and every now and again the smaller objects fly through the bigger object.

I don’t have a collision function or anything, am letting the physics world do the work.

Dave [import]uid: 117617 topic_id: 27477 reply_id: 327477[/import]

Have a look at the bullet demo. You might also want to increase the physics.setPositionIterations value to calc physics collisions more often.

This type of thing is certainly a balancing act though. [import]uid: 8271 topic_id: 27477 reply_id: 111650[/import]

Interesting stuff that Bullet demo, thanks for that.

Been playing around with physics.setPositionIterations and density. Although am not using gravity, density effects the speed of the item.

Dave [import]uid: 117617 topic_id: 27477 reply_id: 111660[/import]