Collision body problem

I’m using the catapult example and it flings a tire. I have the tires radius set to the size of my tire image, it collides with my objects fine, but it doesn’t roll on the ground, it is up off of it.

I can’t figure out why it does this. I have the physics.setDrawMode set to hybrid and everything is outlined just fine.

Here is an example of it.

http://dl.dropbox.com/u/41194248/test.zip

I would post some code here, but I don’t know what part to post.

Thanks for looking

Dan [import]uid: 78446 topic_id: 19148 reply_id: 319148[/import]

There’s a problem with your function newProjectile() on line 298. All physics objects must be inserted into the same group or you will begin to have weird problems like the one in your code.

You insert tire into game group which is fine but when you return the orb the orb and tire get inserted into a new group called slingshot_container on line 666.

[import]uid: 38820 topic_id: 19148 reply_id: 73909[/import]

Thanks, I had the slingshot_container inserted like-
game:insert( slingshot_container ) so the catapult stays with everything else when the camera moves.

I ended up changing the insert slingshot_container lines to insert game and it works.
Thanks for the help

Dan
[import]uid: 78446 topic_id: 19148 reply_id: 74469[/import]