tag:blogger.com,1999:blog-7015430719298335364.post8235558074621538250..comments2023-08-18T00:22:54.027-07:00Comments on The Deranged Hermit's Devlog: 2D Platformer Collision Detection with Raycasts: One-Sided Platforms & LayerMasksAnonymoushttp://www.blogger.com/profile/15474215252622380238noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-7015430719298335364.post-88886816735763167282022-03-04T13:45:48.417-08:002022-03-04T13:45:48.417-08:00Best Betway mobile sports betting app in India for...Best Betway mobile sports betting app in India for the - Jtm Hub<br />For sports betting, the Betway mobile app <a href="https://drmcd.com/%eb%b0%80%ec%96%91%ec%a3%bc%eb%b3%80-%ea%b0%80%ea%b9%8c%ec%9a%b4%ec%b6%9c%ec%9e%a5%eb%a7%88%ec%82%ac%ec%a7%80.html" rel="nofollow">밀양 출장샵</a> has <a href="https://drmcd.com/%ec%84%9c%ec%82%b0%ec%b5%9c%eb%8c%80%ea%b7%9c%eb%aa%a8%ec%b6%9c%ec%9e%a5%eb%a7%88%ec%82%ac%ec%a7%80.html" rel="nofollow">서산 출장마사지</a> its own unique mobile sports betting <a href="https://www.jtmhub.com/%ec%b6%98%ec%b2%9c%ec%97%90-%eb%8c%80%ed%95%9c-%ec%9a%b0%ec%88%98%ed%95%9c%ec%b6%9c%ec%9e%a5%ec%95%88%eb%a7%88%eb%a6%ac%eb%b7%b0.html" rel="nofollow">춘천 출장마사지</a> app, which allows punters to bet across <a href="https://www.mapyro.com/%ec%a0%9c%ec%a3%bc%eb%8f%84%ec%b5%9c%ec%83%81%ec%9d%98-%ea%b4%80%eb%a6%ac%ec%b6%9c%ec%9e%a5%ec%95%88%eb%a7%88.html" rel="nofollow">제주도 출장마사지</a> various <a href="https://www.mapyro.com/%eb%82%a8%ec%9b%90%ea%b0%80%ec%9e%a5-%ec%9d%b8%ea%b8%b0-%ec%9e%88%eb%8a%94%ec%b6%9c%ec%9e%a5%ec%83%b5%ea%b0%80%ea%b2%8c.html" rel="nofollow">남원 출장샵</a> markets.parsifalulbrichthttps://www.blogger.com/profile/07028827798022002155noreply@blogger.comtag:blogger.com,1999:blog-7015430719298335364.post-23098450778391475382014-05-19T19:09:25.452-07:002014-05-19T19:09:25.452-07:00Hey Travis,
thank you very much! Unfortunately I ...Hey Travis,<br /><br />thank you very much! Unfortunately I can not use your slope solution in my project. But I have changed a little bit of the initial design and now these slopes are working as a speed up for the player - Once they have touched a certain area they are forced to follow the slope and get a speed boost.This will work for my current project at least ;)<br /><br />Anonymoushttps://www.blogger.com/profile/16799570560181732696noreply@blogger.comtag:blogger.com,1999:blog-7015430719298335364.post-50601721977875182642014-05-16T06:22:56.332-07:002014-05-16T06:22:56.332-07:00Hey Max,
Sorry about the delayed reply! I have ju...Hey Max,<br /><br />Sorry about the delayed reply! I have just uploaded my script (PhysicsTest.cs) to Google Drive. Here is the link:<br /><br />https://drive.google.com/file/d/0B4_kE7nYzamoOW1yV2RlcTF5N1k/edit?usp=sharing<br /><br />I hope it helps! =)<br />-mysteriosum(the deranged hermit)Anonymoushttps://www.blogger.com/profile/15474215252622380238noreply@blogger.comtag:blogger.com,1999:blog-7015430719298335364.post-10178196032310003392014-05-10T16:50:21.226-07:002014-05-10T16:50:21.226-07:00Hey,
Is there any chance that you will post your ...Hey,<br /><br />Is there any chance that you will post your whole C# script at once? I tried to convert your older posts to 2D but things got really weird and I can not get the pieces to work together. I have written a custom 2d physics "engine" for my Unity2D Jump&Run project but the slopes are the problem... Anonymoushttps://www.blogger.com/profile/16799570560181732696noreply@blogger.comtag:blogger.com,1999:blog-7015430719298335364.post-3294315630976265422014-03-14T13:43:20.499-07:002014-03-14T13:43:20.499-07:00Hey Brainswitch! Thanks for your input. Good stuff...Hey Brainswitch! Thanks for your input. Good stuff to know!<br /><br />I felt like I had tried to declare it as static before and I got a complaint from the compiler, but I just tried it now and it works. So yeah do this! I think I was trying to declare nonstatic members in the static class and that's why it hadn't worked.<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/15474215252622380238noreply@blogger.comtag:blogger.com,1999:blog-7015430719298335364.post-12074802965970498402014-03-12T06:09:27.919-07:002014-03-12T06:09:27.919-07:00This (yours) is a pretty decent way of doing it, a...This (yours) is a pretty decent way of doing it, and I'd like to add some info to it. Static constructors are called once for each class that has one, right in the start. Before any Awake calls are made.<br />Oh, and a class with only static variables that you never intend to 'new'/instantiate - you can (and IMO should) declare it as static, ie: "public static class Raylayers".Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7015430719298335364.post-35831663952157609612014-03-05T14:07:13.969-08:002014-03-05T14:07:13.969-08:00oh man that is way better than my method. Thanks f...oh man that is way better than my method. Thanks for helping me understand the bitshift stuff. I've seen that used in other code but I didn't understand it at all.<br /><br />I look forward to the moving platform stuff as well.<br />One thing that gave me some confusion was the way the rays have been cast thus far.<br />Usually the rays only cast in the direction of the players movement. But I needed a way to detect collisions on both sides in case a moving platform pushes you from behind.<br />I wound up splitting the left and right collisions. I don't think it's very efficient the way I did it though. It also cause some problems with my wall jumping code because it would detect a hit at the moment I jumped away.<br /><br />For the vertical moving platforms I noticed my downwards raycasts needed to be longer to be able to detect the platform otherwise I'd get that hopping effect if it moved too far too fast. The switch for being grounded would get unchecked because the platform would move beyond the raycast during the next frame.<br />My fix was to just make the raycast shoot further but this causes some slightly glitchy problems with landing on the static environment.<br />It works for the most part but I can't wait to see what you come up with!Anonymoushttps://www.blogger.com/profile/04024881476187795903noreply@blogger.com