Does rigidbody.AddForce work for the iphone?

Most likely a dull question, but my line of code does not seem to want to work.

    if (touch.phase == TouchPhase.Began && jumpo.collider.gameObject.tag == "player") 
    {

        jumpo.rigidbody.AddForce(Vector3.up * upForceOnTouch);
        //jump = true;
    }

I know the If statement works are the commented out line links to another if statement and it will turn an emitter on.

Any thoughts or suggestions to weather i should stick to this or move to another way of giving force?

1 Answer

1

straight from the docs: "If you want to apply a force over several frames you should apply it inside FixedUpdate instead of Update."

perhaps it is adding the force, but the force is too small to see.