This project has moved and is read-only. For the latest updates, please go here.

Problem with density.

Jan 4, 2014 at 10:27 PM
my code looks tahat:

public void CreateWorld()
        _physicsWorld = new World(new Vector2(0.0f, 9.82f));
bd = BodyFactory.CreateCircle(_physicsWorld, pilka.Height/8, 1f, vector);
        bd.BodyType = BodyType.Dynamic;
        bd.Restitution = 0.3f;

        bd.Friction = 0.5f;
bd.ApplyForce(new Vector2(0.0f, -3500000.0f), bd.WorldCenter);

why i must use this really strong power to move the body? when i add less its nothing happend.
Jan 11, 2014 at 4:45 PM
please use ConvertUnits.ToSimUnits and ConvertUnits.ToDisplayUnits

body.Position = ConvertUnits.ToSimUnits(WorldPosition)
WorldPosition = ConvertUnits.ToDisplayUnits(body.Position)