Im attempting to get a game object to fall when an event is fired only, however the code below runs and nothing happens. However, when i restart the game, kinematic == false and all the objects fall. Why won’t the pieces fall when I run the code below instead? I even tried adding force and velocity.
public void OnPieceFall(object sender, EventArgs e)
{
gamePiece = GetComponent<GamePiece> ();
Rigidbody2D rb2d = gamePiece.GetComponent<Rigidbody2D> ();
rb2d.isKinematic = false;
rb2d.AddForce (new Vector2 (0, 10));
rb2d.velocity = new Vector2 (0, 10);
}