stopping an object from going through a wall?

hi guys,

well im making a maze, and of course there are walls. how do i keep the draggable object they are using to make their way through the maze from going right through the walls? heres the sample code of a wall that i want to keep from being able to be gone through:

[code] local wall = display.newImage( “Shortwall1.png”, 100, 400 )
localGroup:insert(wall) [import]uid: 19836 topic_id: 6525 reply_id: 306525[/import]

You would probably want to make it a static physics body. Then the draggable one would probably be kinematic. [import]uid: 11465 topic_id: 6525 reply_id: 22646[/import]

okay thanks. im still trying to figure out how to make it draggable also. do you know how? [import]uid: 19836 topic_id: 6525 reply_id: 22678[/import]

There’s a very good example that comes with Corona. [import]uid: 11465 topic_id: 6525 reply_id: 22766[/import]

okay thanks i will check that out. [import]uid: 19836 topic_id: 6525 reply_id: 22773[/import]

How would you go about it, if you are not “dragging” instead you touch a area on the screen to move your player to that last point of touch. I have the issue where the player still goes through the wall. Any suggestions? [import]uid: 53149 topic_id: 6525 reply_id: 36292[/import]