{"video_id":"mSAMITDO4jQ","comment_count":400,"fetched_at":"2026-10-23T17:38:17+00:00","source":"innertube_next","comments":[{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"UgwjnFqfvKLHSLVO69F4AaABAg","text":"…Today, I learned how to tilt the cartridge — of a game that was only ever released on a DISC (and in digital form)! :D","author":"@KizulEmeraldfire","author_id":"UCTnQN1rHfmnVl8FIHx38sZw","like_count":404,"published_time":"1 year ago"},{"id":"Ugw9oVkwczeqoC2AxJN4AaABAg","text":"you should've just done what astrophysicists do:\nπ = 1\nπ^2 = 10","author":"@wta1518","author_id":"UC-WYTJDBevIRJ_UMhOy331A","like_count":97,"published_time":"1 year ago"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugwbsy7xnfey1tBBrsF4AaABAg","text":"What if every calculation is just +1 the final result no matter what. It could be a small enough change to be uncanny or a massive change depending on the usual state of the values.","author":"@VocalMabiMaple","author_id":"UCzLxVDJAf-x4QwmjE2sso3w","like_count":31,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugx76eEj20mykah159Z4AaABAg","text":"Aw dang its only cpu side code that gets swapped i would have loved to see the absolute catastrophe that would have happened if all the shader code got messed with too","author":"@The_Ratner","author_id":"UCyn93Ydo-m4Nvr0Q2vhrOqA","like_count":62,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw7caWP23VenjnB8KB4AaABAg","text":"You can use a mod called Quick Mäth in Minecraft to make the math \"more efficient\" and \"faster\". By default, it's absolutely uncontrollable. I've beaten the game twice when it's set just to corrupt the noise generator.","author":"@AlenaEKi","author_id":"UCg1M2ixxwqikyvzTJDqYsrA","like_count":20,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxFRN8p3TmDHuit79R4AaABAg","text":"9:43 Do not look directly at the operational end of the device.","author":"@Toprak135","author_id":"UCEcIP0LpqZRMWztqceUto3Q","like_count":7,"published_time":"1 year ago (edited)"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"Ugw9oVkwczeqoC2AxJN4AaABAg","text":"you should've just done what astrophysicists do:\nπ = 1\nπ^2 = 10","author":"@wta1518","author_id":"UC-WYTJDBevIRJ_UMhOy331A","like_count":97,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgwjnFqfvKLHSLVO69F4AaABAg","text":"…Today, I learned how to tilt the cartridge — of a game that was only ever released on a DISC (and in digital form)! :D","author":"@KizulEmeraldfire","author_id":"UCTnQN1rHfmnVl8FIHx38sZw","like_count":404,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgwjnFqfvKLHSLVO69F4AaABAg","text":"…Today, I learned how to tilt the cartridge — of a game that was only ever released on a DISC (and in digital form)! :D","author":"@KizulEmeraldfire","author_id":"UCTnQN1rHfmnVl8FIHx38sZw","like_count":404,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgydXaRcBKnzIcbikMN4AaABAg","text":"7:29\nGlados:\n**FẼÐÈŘǍŁ**","author":"@SparkLinkDevelopmentStudio","author_id":"UCImtlKaL2T_C1IL0fkDQx4g","like_count":33,"published_time":"1 year ago (edited)"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwjnFqfvKLHSLVO69F4AaABAg","text":"…Today, I learned how to tilt the cartridge — of a game that was only ever released on a DISC (and in digital form)! :D","author":"@KizulEmeraldfire","author_id":"UCTnQN1rHfmnVl8FIHx38sZw","like_count":404,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgzELyPCrug233iLZRJ4AaABAg","text":"I wish you did, \"Portal 2 but the Math is Mostly Correct\"\n\nConstants are close (PI is 3 instead of 3.14), and calculations are replaced with equations that give low-quality approximations.","author":"@Definitely_a_Fox","author_id":"UCuVjA-FD9txemwMQjR4RJ8A","like_count":170,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgwIJlggvpw_FD6_nth4AaABAg","text":"im surprised how little the portals were broken. none of the changes (that you showed at least) had any major issues with the portals, excluding finale 4 of course","author":"@mridiot57","author_id":"UC8kRsPPr8jxW5uLFex9am4A","like_count":98,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgwjnFqfvKLHSLVO69F4AaABAg","text":"…Today, I learned how to tilt the cartridge — of a game that was only ever released on a DISC (and in digital form)! :D","author":"@KizulEmeraldfire","author_id":"UCTnQN1rHfmnVl8FIHx38sZw","like_count":404,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgwjnFqfvKLHSLVO69F4AaABAg","text":"…Today, I learned how to tilt the cartridge — of a game that was only ever released on a DISC (and in digital form)! :D","author":"@KizulEmeraldfire","author_id":"UCTnQN1rHfmnVl8FIHx38sZw","like_count":404,"published_time":"1 year ago"},{"id":"UgyFP2ElNCkf0oh7HY54AaABAg","text":"7:44 \"Hey guys- I think there's NOTHING wrong with my triple lazers\"","author":"@Stowaway-dea","author_id":"UCNm6LoGV-GJQ7Qg0k3GYD5g","like_count":233,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugwbsy7xnfey1tBBrsF4AaABAg","text":"What if every calculation is just +1 the final result no matter what. It could be a small enough change to be uncanny or a massive change depending on the usual state of the values.","author":"@VocalMabiMaple","author_id":"UCzLxVDJAf-x4QwmjE2sso3w","like_count":31,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"Ugx76eEj20mykah159Z4AaABAg","text":"Aw dang its only cpu side code that gets swapped i would have loved to see the absolute catastrophe that would have happened if all the shader code got messed with too","author":"@The_Ratner","author_id":"UCyn93Ydo-m4Nvr0Q2vhrOqA","like_count":62,"published_time":"1 year ago"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"Ugw7caWP23VenjnB8KB4AaABAg","text":"You can use a mod called Quick Mäth in Minecraft to make the math \"more efficient\" and \"faster\". By default, it's absolutely uncontrollable. I've beaten the game twice when it's set just to corrupt the noise generator.","author":"@AlenaEKi","author_id":"UCg1M2ixxwqikyvzTJDqYsrA","like_count":20,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxFRN8p3TmDHuit79R4AaABAg","text":"9:43 Do not look directly at the operational end of the device.","author":"@Toprak135","author_id":"UCEcIP0LpqZRMWztqceUto3Q","like_count":7,"published_time":"1 year ago (edited)"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"UgzzWUpsF3-QWM-MDld4AaABAg","text":"Portal 2 with the math broken is just a modern AAA game at launch","author":"@cajadeavena9733","author_id":"UCqKWwKQh1kTOxWMLn8-WHwQ","like_count":6,"published_time":"10 months ago"},{"id":"UgyCSnJ7N2VnpU_51DN4AaABAg","text":"14:43 \"Reminder that a side effect of Portals are seizures\"","author":"@IsaqueCrystal-h3d","author_id":"UC0SoP7jw-DvWIphRRsafNJA","like_count":1,"published_time":"2 months ago"},{"id":"UgwpQJSqp5_XApS0JJx4AaABAg","text":"11:11 the few frames of fucked up Wheatley","author":"@prodigy6106","author_id":"UCgMHsodvl0b8HszyyXpUk9w","like_count":6,"published_time":"1 year ago"},{"id":"Ugy3d9fxDF1B4nddD9x4AaABAg","text":"7:57 WHEATLEY JUST NODDING","author":"@CJCJHEN_VIDEO","author_id":"UC0EmugXVEEAF4sHNFdjGiWA","like_count":1,"published_time":"5 months ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgxDSYhp5Ix5FdF8B6F4AaABAg","text":"That intro with the music, everything being all fucked up alongside the fact that it's 4am and I haven't slept were all really good at freaking me out","author":"@jonnaas","author_id":"UCpTrO13owIUMzf_Sll5cXtw","like_count":1,"published_time":"8 months ago"},{"id":"UgxIiNfgPhqpchjxbIF4AaABAg","text":"5:28 call him yeetly","author":"@ninatiels","author_id":"UCoO9FV43s-cTSaWUp143aBg","like_count":17,"published_time":"1 year ago"},{"id":"UgziTKqLapjNecFvOxt4AaABAg","text":"I'm honestly surprised that you can even walk around in a somewhat coherent 3d world with such broken math","author":"@Kaldrin","author_id":"UCxKjJNEv1n9E64PKp5A9Hjw","like_count":7,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"UgyoiAjYNdxp68NPdjF4AaABAg","text":"11:24 ah yes, Aperture Science's new invention, the flak turret","author":"@maybezarya","author_id":"UCvDaCh-fWG57-CfHL4W8Tmw","like_count":1,"published_time":"10 months ago"},{"id":"Ugy04z8RmhXlzY_ysf94AaABAg","text":"“I reject your reality and substitute my own” -Adam Savage","author":"@bennyellis3512","author_id":"UCc62_PCOO_I0Pkuny6Yp9cQ","like_count":25,"published_time":"1 year ago"},{"id":"Ugzq2Evj3w2uOkGqRDF4AaABAg","text":"As an engineer, you know, we like to simplify stuff.\n\nRound to the nearest multiple of 10.\nπ=e=0","author":"@clippythenerd","author_id":"UCkI6l7dEwvvpTjDHugQGncA","like_count":1,"published_time":"4 months ago"},{"id":"UgzzEaS7zVxWEOCd0kB4AaABAg","text":"\"2 + 2 = ......... 10 \nIN BASE 4 IM FINE!\"","author":"@fiqirr","author_id":"UCFbG-7Yna-sNoRbuasCOCtg","like_count":15,"published_time":"1 year ago"},{"id":"UgyDBbrmxwnz5xH00z54AaABAg","text":"need a playthrough \"portal but every time GLaDOS speaks, pi is increased 1%\"","author":"@X4Alpha4X","author_id":"UCVXxbbNqGfFzfIiwcI07FFg","like_count":2,"published_time":"8 months ago"},{"id":"UgzOBGNB2FIQMTe8N8x4AaABAg","text":"This is what SuperLiminal on crack and with a portal gun would look like","author":"@NinjaV-44","author_id":"UCl2ccIk45RAf4YLp9L-EW9w","like_count":6,"published_time":"1 year ago"},{"id":"UgwZM2IhpX1nKI2h1OR4AaABAg","text":"Portal 2 but chell has an actual minor case of serious brain damage","author":"@georgevasilopoulos5359","author_id":"UCA3ePczdI4DBQR6scdqLCmQ","like_count":2,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"Ugy3DJhOXfqnoQUglit4AaABAg","text":"11:19: You know the story of how creepers were invented in Minecraft?  Those turrets look like they have the same issue of swapping length and height, which honestly makes them more coherent than most things in the mod.","author":"@danielrhouck","author_id":"UCiC-LHncjxUMUwBMO9vuBzA","like_count":0,"published_time":"6 months ago"},{"id":"Ugw8a0jxV4EBy6jlB5R4AaABAg","text":"3:15 that clip seems straight out of Superliminal","author":"@jellybrain7320","author_id":"UCtRI0tK7pTXsg5AcBXH74PQ","like_count":6,"published_time":"1 year ago (edited)"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"},{"id":"UgzkxnAbJyfGJNBwzyp4AaABAg","text":"For an appendix to the video, here’s some further explanation:\n- The `tan` function is actually very important in math and game development. The reason I skipped over it here is because the only noticeable effect breaking it had was changing FOV and the scale of menu animations.\n- The reason the game is at all playable is because the Source engine likely uses wrappers or custom implementations of many functions which I can’t hook. Anything precalculated or any GPU code is also obviously off limits, so this only really messed with some dynamic parts of the engine. Some other math (like movement) is also primarily done with vector operations, which often avoid using many of these functions.\n- The audio and lighting are messed up because of the modifications to the `sqrt` and `pow` functions, which handle the square root and exponentiation respectively. Source has a sound system that adjusts reverb to the scale of the room you’re in, and that uses `pow` for its calculations. We’re effectively inverting the function, which means that small rooms are loud and bigger rooms are fine. Lighting is a similar story - the fog distance and light intensity are also products of exponentiation.\n- I’ve seen some comments suggesting that I should’ve tried using bad approximations for these functions, but rather unsurprisingly, that would still cause less chaos than pi being 4 or sine and cosine being swapped. I even tried turning sin/cos into a triangle wave, but that changed virtually nothing besides making physics a bit jittery.\n- The \"\"physics engine\"\" I made in 10 minutes is really not as impressive as it sounds. It’s just doing ray-AABB intersection checks for all physics props and either simulating gravity if something is in the air or not doing anything depending on if there’s a collision. There’s some more code for picking up and throwing things, but that’s about it.\n- I somewhat regret not adding this appendix to the video with some neat animations and a voiceover explanation, but if you have any other questions, comment them below.","author":"@PortalRunner","author_id":"UCx-PpwbajI5ToAY0WwJO2Kg","like_count":576,"published_time":"1 year ago (edited)"},{"id":"Ugwv-VLIc8w6JkZxPoV4AaABAg","text":"\"All Aperture technologies remain safely operational up to π = 4.\"","author":"@demasopr","author_id":"UCA7s8dwJ4fbOw1wB5q_N0FA","like_count":7,"published_time":"1 year ago"},{"id":"Ugzc2-qd2cjB7XvAFax4AaABAg","text":"\"If the laws of physics don't apply in the future, god help you.\"","author":"@test-uy4vc","author_id":"UCMJx1oDlYllPtTk7_nIrPUg","like_count":9,"published_time":"1 year ago"},{"id":"UgywqWSNMcv-hEpbk-94AaABAg","text":"\"Two plus two is... ten. IN BASE FOUR! I'M FINE!\"\n-GLaDOS, probably.","author":"@MrGermandeutsch","author_id":"UC-rBsO2Wd8io-nT0W12BjMA","like_count":989,"published_time":"1 year ago"},{"id":"Ugz3VASmY_KNOkJvup14AaABAg","text":"Wheatley was right that if he ever got off his management rail or turn his flashlight on he would die lmao","author":"@portal6347","author_id":"UC4UCK4M2n-aoSmuQwRI5mxQ","like_count":481,"published_time":"1 year ago"},{"id":"UgwoGO3cMHhQarIkFep4AaABAg","text":"“Ln of x is now log base 3” 4 trillion trig students dead, 45 gaborillion injured","author":"@unknown_demi6902","author_id":"UCmdFSJGb4pwc0f7L1I3TiDw","like_count":3,"published_time":"1 year ago"},{"id":"UgxZysvILd049vaGgY54AaABAg","text":"Portal but you looked into the operational end of the device.","author":"@UrpleStarr","author_id":"UClG0zhsWxS2vtNkj4BOulNg","like_count":2,"published_time":"1 year ago (edited)"},{"id":"UgxQzlgUY5iD_bA-hrB4AaABAg","text":"The way portals still work perfectly fine is insane to me","author":"@veryslowbunny","author_id":"UCc6KRyxKqcX0802ZoGON2qA","like_count":2,"published_time":"1 year ago"},{"id":"Ugw9xi6O5pM7aFBPNix4AaABAg","text":"\"I disabled the physics and replaced it with my super simple physics engine\"\n\nAnd he said it like it's no big deal","author":"@ShotGun-m6s","author_id":"UCUe69GGcfPboe-_4Pxy2XTw","like_count":281,"published_time":"1 year ago"},{"id":"UgxA7E4Xq6MmNC7sqf94AaABAg","text":"Portal two but I did the calculations","author":"@Popfizz2023","author_id":"UCspQ_b9jWIdklpMVd6t-QQw","like_count":2,"published_time":"1 year ago"},{"id":"UgzQ_KR13jQakEkuaZ54AaABAg","text":"If you told me this was an early-access Bethesda game, I would believe you.","author":"@Ploxtifs_OldAndDeadAccountXD","author_id":"UCMTs-X19jT87aygelrkiurg","like_count":155,"published_time":"1 year ago"},{"id":"Ugy2uvoGpkhQ5vdV_ot4AaABAg","text":"I was a math tutor in college, and one time I tutored a guy in remedial algebra. We spent the first 15 mins of every session arguing about whether math was useful in real life, and how he thought the algebra was a waste of time, but bro was a COMPUTER SCIENCE MAJOR WHO WANTED TO GO INTO GAME DESIGN like bro you got another storm coming","author":"@CoolRanchToesies","author_id":"UC4iLACJB1QHdfZaHRGqrMsw","like_count":621,"published_time":"1 year ago"},{"id":"UgwwV8XzYGcd9hsWp7J4AaABAg","text":"Here's a fun function replacement: Replace all the trig functions with their hyperbolic counterparts.","author":"@blockmath_2048","author_id":"UC-qgOGHE_iZ4u6iL3vA4jlw","like_count":1,"published_time":"1 year ago"},{"id":"UgxkklcOp5_OoArfwRZ4AaABAg","text":"minor inconvenience","author":"@QwertyG8378","author_id":"UC2W61n4opE-RozXDatLnAUg","like_count":1,"published_time":"1 year ago"},{"id":"UgygR376FelFnUZrU4B4AaABAg","text":"0:44 unit circle jumpscare","author":"@lippyncott","author_id":"UCZLUJekPi53eYYTy1uxK6xw","like_count":1,"published_time":"1 year ago"},{"id":"Ugy2MkZeJ8SdobWdTMV4AaABAg","text":"1:08 \"the tan and atan are important for.. something\" me every math class:","author":"@borismuzlanov8467","author_id":"UCswNZjmfYW0oDxbeoNm_5Ig","like_count":25,"published_time":"6 months ago"},{"id":"Ugyl35iXem3mOvranF54AaABAg","text":"π = 4: \"You think I'm bad? Make way for my big brother!\"\nπ = 5: \"Sup!\"","author":"@RuyVuusen","author_id":"UC58RsRMljVeBQeKgnduP0EQ","like_count":249,"published_time":"1 year ago"},{"id":"Ugy2dwFpU3XvGXdFV1l4AaABAg","text":"\"Morty! I belch rounded down this dimension's fine-structure constant from 1/137.035999177 to a clean 1/137! I just hate long decimals, Morty, I FUCKING HATE THEM! Besides, it's such a small margin, what's the worst that's gonna ha-\"","author":"@SchlimbySchlikari","author_id":"UCjwfQrWJVgqrE_9pTer7pxA","like_count":356,"published_time":"1 year ago (edited)"},{"id":"Ugyf9L1Ec-UXHeoPoSt4AaABAg","text":"someone made a Sin Cos swapper mod for Minecraft and called it \"Agony\". that name still holds true in Portal","author":"@4Bakers","author_id":"UC23ekflRtlqNuB71FxB2w2A","like_count":151,"published_time":"1 year ago"},{"id":"UgyhuI5nFyu6pkjECKh4AaABAg","text":"“I threw together my own physics engine” EXCUSE ME WHAT","author":"@J0R1AN","author_id":"UCd725qt5chNZ2Zm6q0tplBg","like_count":50,"published_time":"1 year ago"}]}