Sorry to ask this co'z after several hours of googling but up to this time had no luck. Ok successfully added a body in a world i created but I do not know how to set it's initial position.
Here is the code
Code:
Code:
package {
import Box2DAS.*;
import Box2DAS.Collision.*;
import Box2DAS.Collision.Shapes.*;
import Box2DAS.Common.*;
import Box2DAS.Dynamics.*;
import Box2DAS.Dynamics.Contacts.*;
import Box2DAS.Dynamics.Joints.*;
import cmodule.Box2D.*;
import wck.*;
import shapes.*;
import misc.*;
import extras.*;
import flash.utils.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
public class World extends wck.World {
public function World() {
var c:BodyShape = new Bilog();
/* tried this but got an error*?
c.setX(10);
c.setY(10);
addChild(c);
}
}
}
Thanks!