Physics Collision

Hi there.
I have a question with the physics collision. Heres the situation. I have my main character moving in a certain direction and velocity in the map you can find powerups this powersUPS needs to be touched with the character in order to take its effect. 

Im using collision events in order to determine when my character has touched one of this powerUPS. Problem is when I touch this power ups, the characters stops moving because of the collision.

So my question is, Is there a way to an object make a collision event with another object without them affecting each other.  Lets say one physic object only passes over another physical object but still creating a collision event.

hi,

set your body obj.isSensor = true

burhan

@Burhan J is correct. You can also set a body as a sensor “inline” in the declaration:

[lua]

physics.addBody( myObject, “dynamic”, { isSensor=true } )

[/lua]

Same exact result, just one less line of code. :slight_smile:

Brent

hi,

set your body obj.isSensor = true

burhan

@Burhan J is correct. You can also set a body as a sensor “inline” in the declaration:

[lua]

physics.addBody( myObject, “dynamic”, { isSensor=true } )

[/lua]

Same exact result, just one less line of code. :slight_smile:

Brent