Code: Select all
coin.fixture.setUserData( coin )
Code: Select all
fixture.getUserData()
This isn't really true; no two objects are the same unless they are literally references to the very same object. These two values below will be considered different:that's a problem because all of the objects in the table are exactly the same
Code: Select all
a = { x = 10, y = 100 }
b = { x = 10, y = 100 }
a == b -- false!
Code: Select all
a = { x = 10, y = 100 }
b = a -- now you have a reference to the same table a
a == b -- now true!
a.x = 100 -- b.x is now also 100, because b is just a link to the same table that a goes to.