I set up the b2ContactListener by writing :
In the Document Class.
How do you run a function that is on the Document Class from b2ContactListener ?
if i write:
doesnt work, even if i set up public function in the document class.
I am sure its a dumb question, but i am kinda confused, how can i do it? 😕
Code:
var m_contactListener=new b2ContactListener();
m_world.SetContactListener(m_contactListener);
m_world.SetContactListener(m_contactListener);
In the Document Class.
How do you run a function that is on the Document Class from b2ContactListener ?
if i write:
Code:
public virtual function Add(point:b2ContactPoint) : void{
function1();
}
function1();
}
doesnt work, even if i set up public function in the document class.
I am sure its a dumb question, but i am kinda confused, how can i do it? 😕