{"author_link":"\/users\/arakade","author_name":"Arakade","author_uid":"arakade","comments":[],"epoch":1696116138,"event":"LD54","format":"md","ldjam_node_id":378185,"likes":2,"metadata":{"p_key":"202401","p_author":"Arakade","p_authorkey":"1008184","p_urlkey":"436388","p_title":"The Crate Escape, carrying through","p_cat":"LDJam ","p_event":"LD54","p_time":"1696116138","p_likes":"2","p_comments":"0","p_status":"WAYBACK","us_key":"1008184","us_name":"Arakade","us_username":"arakade","event_start":"1695945600","event_key":"117","event_name":"Ludum Dare 54"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD54","removed_author":false},"_superparent":371459,"_trust":1,"author":8184,"body":"Took muuuuuch too long but, with the help of some friendly folks on the Godot Discord, I finally have my carrying working.\n\nFor those struggling with the same thing I did, to set the position of a `RigidBody2D` from code, there are 2 ways:\n\n1. In 'normal' code:\n\n```python\nrb2d.set_global_position(newPos)\nrb2d.move_and_collide(Vector2.ZERO) # update physics\n```\n\n2. In `_integrate_forces(state)`:\n\n```python\nstate.transform.origin = newPos\n```\n\nThe proof of the pudding is in the carrying it overhead!\n\nhttps:\/\/youtu.be\/G3OIR7b70eg\n\nHTH!\n\nFinishing early with hopes of an early (and earlier) start tomorrow.  GL all!","comments":0,"created":"2023-09-30T23:20:16Z","files":[],"files-timestamp":0,"id":378185,"love":2,"love-timestamp":"2023-09-30T23:40:26Z","meta":[],"modified":"2023-09-30T23:40:26Z","name":"The Crate Escape, carrying through","node-timestamp":"2023-09-30T23:22:18Z","parent":373095,"parents":[1,5,9,371459,373095],"path":"\/events\/ludum-dare\/54\/$373095\/the-crate-escape-carrying-through","published":"2023-09-30T23:22:18Z","scope":"public","slug":"the-crate-escape-carrying-through","subsubtype":"","subtype":"","type":"post","version":1159454},"node_metadata":{"n_key":"378185","n_urlkey":"436388","n_parent":"373095","n_path":"\/events\/ludum-dare\/54\/$373095\/the-crate-escape-carrying-through","n_slug":"the-crate-escape-carrying-throug","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"8184","n_created":"1696116016","n_modified":"1696117226","n_version":"1159454","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/54\/$373095\/the-crate-escape-carrying-through","text":"Took muuuuuch too long but, with the help of some friendly folks on the Godot Discord, I finally have my carrying working.\n\nFor those struggling with the same thing I did, to set the position of a `RigidBody2D` from code, there are 2 ways:\n\n1. In 'normal' code:\n\n```python\nrb2d.set_global_position(newPos)\nrb2d.move_and_collide(Vector2.ZERO) # update physics\n```\n\n2. In `_integrate_forces(state)`:\n\n```python\nstate.transform.origin = newPos\n```\n\nThe proof of the pudding is in the carrying it overhead!\n\nhttps:\/\/youtu.be\/G3OIR7b70eg\n\nHTH!\n\nFinishing early with hopes of an early (and earlier) start tomorrow.  GL all!","title":"The Crate Escape, carrying through","wayback_source":[]}