Mouse movement speed

Topics: User Forum
Nov 17, 2011 at 9:44 PM

Hi,

I am controlling a circler body (mace) by clicking the mouse to where I want the mace to go, but it's moving far to slowly to have any effect on the other objects.

The aim is to be able to hit over objects into pockets using the mace, but the mace moves so slow the game is unplayable.

Here's my code:


private void MouseDown()
{
    mouseDown = true;
    if (table.MouseJoint == null)
    {
        table.MouseJoint = new FixedMouseJoint(body, body.Position);
        table.MouseJoint.MaxForce = 1000.0f * body.Mass;
        table.World.AddJoint(table.MouseJoint);
        body.Awake = true;
    }
}
And in the Table class:
private void MouseMove()
{
    if (mouseJoint != null)
    {
        mouseJoint.WorldAnchorB = new Vector2(inputSate.CurrentMouseState.X, inputSate.CurrentMouseState.Y);
    }
}

To me it looks fine, and it does work, but the body moves very slowly.

Any help?

Cheers,
Luke