Physics.body.info

Hello,

I have created 10 circels with physics.body in a for loop
Is it possible to give every circel differend info

I have created a class bal (physics.body(CIRCEL,60)
In the main tab i have created 10 circels with this class
Is it possible to give each bal it own info with physics.body.info (1,2,3,4,5,6,7,8,9,10 or a,b,c,d… )

Yes, but i dont really understand your question.

If you do something like this.

P={} 
for i=1,10 do
P[i] =physics. body(CIRCLE, 60)
P[i].info = i
end

It will set the info to 1,2…10.

Thanks