public CASSWorld ( float width, float height, Vector2 gravity ) : System | ||
width | float | |
height | float | |
gravity | Vector2 | |
return | System |
public CASSWorld(float width, float height, Vector2 gravity)
{
// Create the world's axis-aligned bounding box
AABB aabb = new AABB();
aabb.LowerBound = new Vec2(-MARGIN, -MARGIN);
aabb.UpperBound = new Vec2(width + MARGIN, height + MARGIN);
world = new World(aabb, Utils.Convert(gravity), true);
succeeded = failed = false;
}