Weird physics ground issue..

I am using a drag controller for the "player" to move it around the screen and set up collision detection with physics for enemy spawning and fruit falling from the sky for points.

The gravity I set to 9.8

When you release the "player" he falls and hits a ground I set up so he can stay on the stage.

The weird issue that I am having is when I quickly move my mouse to the bottom of the screen the player goes right through the ground!! It doesn't happen when I drop the "player" or when I lightly touch the "player" to the ground. This is a problem that I can't solve.. :/

Here is the physics chunk of code for player and ground:

1
2
3
4
5
6
        physics.addBody(ground)
        physics.addBody(player)
        player.myName = "player"
        player.isFixedRotation = true
        physics.addBody(player, "static", { bounce = 0.2, friction = .5 } )
        physics.addBody(ground, "static", { bounce = 0.2, friction = .5 } )

Hey Jake,

Try going through this handy list Jon put together, it may provide a solution. (It often does.)

http://blog.anscamobile.com/2011/08/solutions-to-common-physics-challenges/

Peach :)

Thanks Peach!! I will take a look!! Jon is the man!!

views:1576 update:2011/12/1 20:56:45
corona forums © 2003-2011