AddForce not working - please help

Options
here is the source code

gameObject.GetComponent<Rigidbody>().isKinematic = false;
gameObject.GetComponent<Rigidbody>().AddForce(gameObject.transform.right * speed );

but ball is not moving - what should i do ?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Abdullah,

    Thank you for choosing Photon!

    This does not look like a Photon related issue.
    It's a Unity question, feel free to search for answers or ask such questions on Unity forums, Unity answers or elsewhere.
    Otherwise, do not start multiple support channels at the same time (forum + email).
    Here are our forum guidelines.

    Thank you for your understanding and cooperation.
  • Abdullah
    Options
    addforce works in unity but when we use photon it didn't worked at all

    if you guys dont reply on time and or have small support system then what we can do ?

    email was sent because no one was replying on forums - everyone was viewing it but no reply.