[Resolved] Physics not moving with scene..

Hey guys, so I am having a problem with physics and scrolling scenes… I have a custom, static, physics object that serves for the ‘ground’ of the scene… When I move the scene.x like scene.x+10 or something everything moves, but my character kind of clips the physics. It is all fine until the ‘camera’ moves… I turned on hybrid to see of the physics object was appearing to move, and it was… I also made sure my ground object was added to the group too… The only think I can this is that the view group is global, so that I can work with it from different modules, and not have to pass it around… Has anyone else had this problem? Does anyone have a workaround or solution?
Here is an image of my problem, the green above it the edge of what is supposed to be the physics object… (The red rectangle is the player… hehe… My artist is being slow…)

Thanks so much!

-Jake [import]uid: 144504 topic_id: 28578 reply_id: 328578[/import]

Bump… Anyone? [import]uid: 144504 topic_id: 28578 reply_id: 115869[/import]

What exactly is your character doing? I’m admittedly a little confused by the image as they player appears to be underground? At first when you mentioned clipping I thought the character was likely, uh, catching on the ground or the like - but am unsure now.

Could you provide a little more info, please? :slight_smile: [import]uid: 52491 topic_id: 28578 reply_id: 115893[/import]

This is going to be a platformer type game… The player is in the ground because the physics are not working right. The platform is in a group, that I changed the position of… (To make the moving camera effect.) Everything works fine before I do that, then the player does not collide where it is supposed to… I use PhysicsEditor to make and import the physics object…
[import]uid: 144504 topic_id: 28578 reply_id: 115914[/import]

Oh I see - the player and the ground are in different groups? If so, that’s the problem, take a look at physics docs RE groups; http://developer.coronalabs.com/content/game-edition-box2d-physics-engine (CTRL+F for group). [import]uid: 52491 topic_id: 28578 reply_id: 116012[/import]

Ohhhh!!! That makes total sense now! I didn’t think the player needed to be in the display group because the group was moving and I didn’t want the player to move with it or something like that… lol Thanks so much, it works!!! =D [import]uid: 144504 topic_id: 28578 reply_id: 116028[/import]

No worries Jake, thrilled to hear it is sorted now - marking as resolved!

Peach :slight_smile: [import]uid: 52491 topic_id: 28578 reply_id: 116202[/import]