Hi all,
I've got a (i think) simple question.
I want to remove object B when I contact object A. I'm wondering how I can interact with the other object.
BoxMan class:
I've got a (i think) simple question.
I want to remove object B when I contact object A. I'm wondering how I can interact with the other object.
BoxMan class:
Code:
var objectA:ObjectA= e.other.m_userData as ObjectA;
var objectB:ObjectB= ??????? as ObjectB;
if (objectA) {
objectB.remove();
}
var objectB:ObjectB= ??????? as ObjectB;
if (objectA) {
objectB.remove();
}