Hello,
i am using physics editor for my project. How can I use shape of my object that i have in lua file(made with physics editor), and trigger event only when event is clicked inside that shape?
function physicsData(scale)
local physics = { data =
{
[“myObject”] = {
{
density = 2, friction = 0, bounce = 0,
filter = { categoryBits = 1, maskBits = 65535 },
shape = { 95, 219.5 , 92.5, 197 , 108.5, 150 , 131.5, 140 , 142.5, 152 , 116, 225.5 , 103, 231.5 }
}
.
.
…
thanks,
Zoltan [import]uid: 174074 topic_id: 32766 reply_id: 332766[/import]