{"author_link":"\/users\/foo-squashed-games","author_name":"Foo - Squashed Games","author_uid":"foo-squashed-games","comments":[],"epoch":1556354920,"event":"LD44","format":"md","ldjam_node_id":149846,"likes":3,"metadata":{"p_key":"129095","p_author":"Foo - Squashed Games","p_authorkey":"1138557","p_urlkey":"345249","p_title":"Why is my code not working?","p_cat":"LDJam ","p_event":"LD44","p_time":"1556354920","p_likes":"3","p_comments":"0","p_status":"WAYBACK","us_key":"1138557","us_name":"Foo - Squashed Games","us_username":"foo-squashed-games","event_start":"1556236800","event_key":"75","event_name":"LD 44"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD44","removed_author":false},"_superparent":139254,"_trust":1,"author":138557,"body":"private void OnCollisionStay(Collision collision)\n    {\n        if(Input.GetKeyDown(KeyCode.Space))\n        {\n            Debug.Log(\"boing\");\n            rb.AddForce(Vector3.up * 20);\n        }\n    }\n\n\nI tested before and it is colliding, but when I press space nothing happens. Using C# and Unity.","comments":4,"comments-timestamp":"2019-04-27T09:38:19Z","created":"2019-04-27T08:47:53Z","files":[],"files-timestamp":0,"id":149846,"love":3,"love-timestamp":"2019-04-27T09:12:44Z","meta":[],"modified":"2019-04-27T09:38:19Z","name":"Why is my code not working?","node-timestamp":"2019-04-27T08:49:19Z","parent":147720,"parents":[1,5,9,139254,147720],"path":"\/events\/ludum-dare\/44\/life-as-currency\/why-is-my-code-not-working","published":"2019-04-27T08:48:40Z","scope":"public","slug":"why-is-my-code-not-working","subsubtype":"","subtype":"","type":"post","version":434938},"node_metadata":{"n_key":"149846","n_urlkey":"345249","n_parent":"147720","n_path":"\/events\/ludum-dare\/44\/life-as-currency\/why-is-my-code-not-working","n_slug":"why-is-my-code-not-working","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"138557","n_created":"1556354873","n_modified":"1556357899","n_version":"434938","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/44\/life-as-currency\/why-is-my-code-not-working","text":"private void OnCollisionStay(Collision collision)\n    {\n        if(Input.GetKeyDown(KeyCode.Space))\n        {\n            Debug.Log(\"boing\");\n            rb.AddForce(Vector3.up * 20);\n        }\n    }\n\n\nI tested before and it is colliding, but when I press space nothing happens. Using C# and Unity.","title":"Why is my code not working?","wayback_source":[]}