How do I use physics Editor for getting the vertex of different of images in sprites.I have built separate (physics Editor)lua files for different images in the sprites.But still not working …Please help me .need to know that desperately…Please help me how to use Physics Editor… [import]uid: 45566 topic_id: 25914 reply_id: 325914[/import]
If you look inside PhysicsEditor’s .dmg file (or inside the application folder on Windows) you’ll find 2 complete examples for corona. One using individual sprites and one together with TexturePacker.
[import]uid: 9611 topic_id: 25914 reply_id: 105262[/import]
That is cool.But that has a single images being loaded and dropping down .how to use sprites? For example,I am using a sprite of a frog.So how would I use that sprite in the physics editor? [import]uid: 45566 topic_id: 25914 reply_id: 108238[/import]
What exactly do you mean by “I am using a sprite”? Do you mean an animation? Or a sprite sheet? [import]uid: 9611 topic_id: 25914 reply_id: 108346[/import]
sprite means sprite sheet.there’s a sprite sheet for the frog and I want the collision to happen with the frog sprite sheet .the sprite sheet is bit longer than the frog.So what happens is that collision happens with the image not with the frog.So how can I use the sprite sheet in physics editor? [import]uid: 45566 topic_id: 25914 reply_id: 108433[/import]
Please use a single sprite to create your physics shape. Choose one and add it to PhysicsEditor. You might also add alternatives for that on and let PhysicsEditor calculate the best shape that fits all animation phases.
It is important to use only one single shape. If you try would build collision shapes for each single animation phase you would end up with a complete mess in the physics. This is because the area of a shape also defines it’s mass. Changing a shape will make him loose or gain weight. [import]uid: 9611 topic_id: 25914 reply_id: 108435[/import]
This is working fine for a single image but how to incorporate the spritesheet(where I have 6 images in the sheet) in that.Can i create spritesheet using physics editor? [import]uid: 45566 topic_id: 25914 reply_id: 108455[/import]