Hi there,
I am new to the WCK in AS3 so please bare with me, it isn't a difficult question.
I have a world movieclip and 2 boxes in them, but how can I, i.e apply forces to those boxes?
Of course I can extend the Box class, but can I also just use their instance name to retrieve information or change some parameters, for example:
I want to add gravity to one of those boxes that attracts several other boxes, so working in with multiple classes isn't very effective I think.
Thanks in advance 😉
mrT
I am new to the WCK in AS3 so please bare with me, it isn't a difficult question.
I have a world movieclip and 2 boxes in them, but how can I, i.e apply forces to those boxes?
Of course I can extend the Box class, but can I also just use their instance name to retrieve information or change some parameters, for example:
Code:
world.box01.GetAngle();
or Code:
world.box01.ApplyForce( new b2Vec(2, 0), world.box01.GetPosition() );
I want to add gravity to one of those boxes that attracts several other boxes, so working in with multiple classes isn't very effective I think.
Thanks in advance 😉
mrT