Physics body question?

How would I shape a physics body to my shape? I’m trying to use the shape of a standard kitchen knife, and when you touch it you die. My problem is the shape that the physics body is making is a rectangle from the biggest part of the knife. My question is how would I get the physics body to match up with the curving shape of the knife? Thanks for any help anyone can give!!

Try out “physics editor” Google that.

Good luck!

You can also try:

https://docs.coronalabs.com/daily/api/library/graphics/newOutline.html

or define your own shape:

https://docs.coronalabs.com/daily/guide/physics/physicsBodies/index.html#polygonal-bodies

Note: There are serveral guides to using physics here (see links at top of this page):  https://docs.coronalabs.com/daily/api/library/physics/index.html

See alsoPhysics Setup (guide)   Physics Limitations (guide)   Physics Bodies (guide)   Collision Detection (guide)   Physics Joints (guide)

Note: If you’re not familiar with it, this page will lead you to many answers:

https://docs.coronalabs.com/daily/api/

You asked a fine question, I’m just giving you this link in case you don’t know about the API page.  I use this constantly, and the docs a great.

Cheers,

Ed

Thanks for your responses!! I went and tried the physics editor, but it ended up making the size of the invisible physics body even bigger (not sure why). Also the API is always the first place to take any questions! thanks for your reply! This is what I’m trying to use… ytXEH8W.png

How would go about trying to shape the physics to it? This is my first time not using symmetrical shapes as physics objects. Thanks for any help you guys can give me!

Try out “physics editor” Google that.

Good luck!

You can also try:

https://docs.coronalabs.com/daily/api/library/graphics/newOutline.html

or define your own shape:

https://docs.coronalabs.com/daily/guide/physics/physicsBodies/index.html#polygonal-bodies

Note: There are serveral guides to using physics here (see links at top of this page):  https://docs.coronalabs.com/daily/api/library/physics/index.html

See alsoPhysics Setup (guide)   Physics Limitations (guide)   Physics Bodies (guide)   Collision Detection (guide)   Physics Joints (guide)

Note: If you’re not familiar with it, this page will lead you to many answers:

https://docs.coronalabs.com/daily/api/

You asked a fine question, I’m just giving you this link in case you don’t know about the API page.  I use this constantly, and the docs a great.

Cheers,

Ed

Thanks for your responses!! I went and tried the physics editor, but it ended up making the size of the invisible physics body even bigger (not sure why). Also the API is always the first place to take any questions! thanks for your reply! This is what I’m trying to use… ytXEH8W.png

How would go about trying to shape the physics to it? This is my first time not using symmetrical shapes as physics objects. Thanks for any help you guys can give me!