Just starting to untangle physics…
I cannot understand why the following code is necessary in the Collision Detection code sample
crate1.collision = onLocalCollision
crate1:addEventListener( “collision”, crate1 )
I tried
–crate1.collision = onLocalCollision
crate1:addEventListener( “collision”, onLocalCollision )
and of course it doesn’t work, but I don’t understand why you first assign the event function, onLocalCollision, as a property of crate1. Is “collision” a predefined property that I am just not aware of?
as always thanks
[import]uid: 50215 topic_id: 10661 reply_id: 310661[/import]