<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: The Grappling Hook Game, Dev Log 5: Wrapping And Slacking	</title>
	<atom:link href="https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/</link>
	<description>We&#039;re back on a default theme because comments broke on my custom one and I don&#039;t have the energy to figure out why</description>
	<lastBuildDate>Fri, 29 Apr 2016 02:44:13 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>
		By: Ethan		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-614836</link>

		<dc:creator><![CDATA[Ethan]]></dc:creator>
		<pubDate>Fri, 29 Apr 2016 02:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-614836</guid>

					<description><![CDATA[Hey Tom from your video on the dev log 5. could you provide me with script lines 375 and down? Im working on a game simular to this (for myself) and the part i am trying to igure out you didnt show in the video. it was around line 375 and down. I mean if you could provide the entire script you were showing in the vid that would be awesome but anyway I hope you can help me out! cheers]]></description>
			<content:encoded><![CDATA[<p>Hey Tom from your video on the dev log 5. could you provide me with script lines 375 and down? Im working on a game simular to this (for myself) and the part i am trying to igure out you didnt show in the video. it was around line 375 and down. I mean if you could provide the entire script you were showing in the vid that would be awesome but anyway I hope you can help me out! cheers</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alex		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-509328</link>

		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 07 Feb 2014 08:59:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-509328</guid>

					<description><![CDATA[I tried doing a hiking/climbing game with ropes, I got to the point where I could wrap around object, but unwrapping...god that was awful, I spent month without succedding, (I still havent ) ! Glad you did it !]]></description>
			<content:encoded><![CDATA[<p>I tried doing a hiking/climbing game with ropes, I got to the point where I could wrap around object, but unwrapping&#8230;god that was awful, I spent month without succedding, (I still havent ) ! Glad you did it !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ghosttie		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-508005</link>

		<dc:creator><![CDATA[ghosttie]]></dc:creator>
		<pubDate>Wed, 25 Dec 2013 06:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-508005</guid>

					<description><![CDATA[Just out of curiousity, what happens when you wrap the rope all the way around an object?  Can you unspool it by going back around the object in the opposite direction?

I think the solution to the floating blocks is airships - they&#039;re higher than any building and so would allow you get on top of any any building, plus they move around so that adds an extra layer of complexity.]]></description>
			<content:encoded><![CDATA[<p>Just out of curiousity, what happens when you wrap the rope all the way around an object?  Can you unspool it by going back around the object in the opposite direction?</p>
<p>I think the solution to the floating blocks is airships &#8211; they&#8217;re higher than any building and so would allow you get on top of any any building, plus they move around so that adds an extra layer of complexity.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Micael		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-507787</link>

		<dc:creator><![CDATA[Micael]]></dc:creator>
		<pubDate>Tue, 24 Dec 2013 04:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-507787</guid>

					<description><![CDATA[Hi, the problem of the physics only checking X times a second is due to a setting called  Fixed Timestamp (I believe that&#039;s the name), which is by default 0.02 (1/0.02 = 50), which is also the reason why you should use fixedupdate since it&#039;s framerate independent, you can just decrease that value to say 0.01 and now you have double the fixedupdates, OFC this requires more performance, but your game is already extremely light so it&#039;s a non issue.

You also have physics options about penetration and the way such things are calculated to make it more accurate.



Looking at your code I would advise that you stop commenting every line of code, unlike what you might think commenting everything is a bad coding practice, comment only when the code itself isn&#039;t clear about it&#039;s purpose. Comments get quickly outdated leading to programming errors, adding to that they reduce the ability of one to see a bigger scope of the code on the screen, since at this point half the lines are comments.
Also for commenting methods/functions use XML comments which appear on intellisense popup making them far more useful than regular comments, since they describe the method/function and it&#039;s parameters, all without even having to go to definition.

I would advise a quick read of a introductory book to c#/programming like head first c#, and something like c# in a nutshell as reference book, somethings mentioned in those books will not work in unity OFC, but most stuff does apply.
If you do not wish to spend time reading I would at least advise you grab a trial of visual studio 2013 (something above the express edition), and the trial of resharper since resharper will suggest alternative ways of doing things, will indicate unused variables, possible null references, and introduce you to lots of c# features that you might not know about, all around it will make your code far better, with very little time investment.]]></description>
			<content:encoded><![CDATA[<p>Hi, the problem of the physics only checking X times a second is due to a setting called  Fixed Timestamp (I believe that&#8217;s the name), which is by default 0.02 (1/0.02 = 50), which is also the reason why you should use fixedupdate since it&#8217;s framerate independent, you can just decrease that value to say 0.01 and now you have double the fixedupdates, OFC this requires more performance, but your game is already extremely light so it&#8217;s a non issue.</p>
<p>You also have physics options about penetration and the way such things are calculated to make it more accurate.</p>
<p>Looking at your code I would advise that you stop commenting every line of code, unlike what you might think commenting everything is a bad coding practice, comment only when the code itself isn&#8217;t clear about it&#8217;s purpose. Comments get quickly outdated leading to programming errors, adding to that they reduce the ability of one to see a bigger scope of the code on the screen, since at this point half the lines are comments.<br />
Also for commenting methods/functions use XML comments which appear on intellisense popup making them far more useful than regular comments, since they describe the method/function and it&#8217;s parameters, all without even having to go to definition.</p>
<p>I would advise a quick read of a introductory book to c#/programming like head first c#, and something like c# in a nutshell as reference book, somethings mentioned in those books will not work in unity OFC, but most stuff does apply.<br />
If you do not wish to spend time reading I would at least advise you grab a trial of visual studio 2013 (something above the express edition), and the trial of resharper since resharper will suggest alternative ways of doing things, will indicate unused variables, possible null references, and introduce you to lots of c# features that you might not know about, all around it will make your code far better, with very little time investment.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Clark Redd		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-507725</link>

		<dc:creator><![CDATA[Clark Redd]]></dc:creator>
		<pubDate>Mon, 23 Dec 2013 23:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-507725</guid>

					<description><![CDATA[Will this game eventually have human character models or will it star a rectangular prism?]]></description>
			<content:encoded><![CDATA[<p>Will this game eventually have human character models or will it star a rectangular prism?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: LTK		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-507723</link>

		<dc:creator><![CDATA[LTK]]></dc:creator>
		<pubDate>Mon, 23 Dec 2013 23:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-507723</guid>

					<description><![CDATA[It&#039;s really interesting to see everyday physics being modelled in a game that has no prior preconception on how these things should work, whereas we all have a (mostly) intuitive understanding of what happens when a weighted rope gets caught on an object in mid-swing. It kind of makes you appreciate both the inherent complexity of physics as well as the challenges faced by programmers daily a bit more.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s really interesting to see everyday physics being modelled in a game that has no prior preconception on how these things should work, whereas we all have a (mostly) intuitive understanding of what happens when a weighted rope gets caught on an object in mid-swing. It kind of makes you appreciate both the inherent complexity of physics as well as the challenges faced by programmers daily a bit more.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Causeless		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-507638</link>

		<dc:creator><![CDATA[Causeless]]></dc:creator>
		<pubDate>Mon, 23 Dec 2013 17:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-507638</guid>

					<description><![CDATA[Here&#039;s what I said on youtube, if it&#039;s any help:

&quot;Messing with angles to determine when to unwrap seems REALLY weird. Here&#039;s what I consider a more correct way - Cast a ray to both the current grapple point, and that point&#039;s parent (instead of just the parent as you were doing before). If you can see both, then it&#039;d unwrap.

You may think this would cause issues if you traveled around an object completely, but then you&#039;ll have created the new grapple points in the process of spinning around it anyways.?&quot;

About the grapple rope going through things... that&#039;s a much trickier solution. It&#039;s delving into the realms of continuous collision detection, which is a crazy huge issue that&#039;s been around for ages.

It&#039;s much easier to find a solution which works &quot;usually&quot; than it is to find one that works in every case.

The easiest solution is just to check for collisions more. Instead of checking every rendering update, check every physics update which happens a lot more... of course, at even higher speeds (or with even thinner objects) it&#039;s still miss.

The harder solution is to check against object&#039;s corners for collisions instead of the whole thing, and then do some maths to find what corners are within the rope angle change between the previous frame and the current one, and then sorting them to ensure the new grapple points are created in the correct order. That *should* work in every situation, and will give improved accuracy to your current sim (where in some cases the line hits away from a corner then cuts through the object).

That is probably too much trouble to be worth it, though.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s what I said on youtube, if it&#8217;s any help:</p>
<p>&#8220;Messing with angles to determine when to unwrap seems REALLY weird. Here&#8217;s what I consider a more correct way &#8211; Cast a ray to both the current grapple point, and that point&#8217;s parent (instead of just the parent as you were doing before). If you can see both, then it&#8217;d unwrap.</p>
<p>You may think this would cause issues if you traveled around an object completely, but then you&#8217;ll have created the new grapple points in the process of spinning around it anyways.?&#8221;</p>
<p>About the grapple rope going through things&#8230; that&#8217;s a much trickier solution. It&#8217;s delving into the realms of continuous collision detection, which is a crazy huge issue that&#8217;s been around for ages.</p>
<p>It&#8217;s much easier to find a solution which works &#8220;usually&#8221; than it is to find one that works in every case.</p>
<p>The easiest solution is just to check for collisions more. Instead of checking every rendering update, check every physics update which happens a lot more&#8230; of course, at even higher speeds (or with even thinner objects) it&#8217;s still miss.</p>
<p>The harder solution is to check against object&#8217;s corners for collisions instead of the whole thing, and then do some maths to find what corners are within the rope angle change between the previous frame and the current one, and then sorting them to ensure the new grapple points are created in the correct order. That *should* work in every situation, and will give improved accuracy to your current sim (where in some cases the line hits away from a corner then cuts through the object).</p>
<p>That is probably too much trouble to be worth it, though.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom Bennett		</title>
		<link>https://www.pentadact.com/2013-12-23-the-grappling-hook-game-dev-log-5-wrapping-and-slacking/#comment-507572</link>

		<dc:creator><![CDATA[Tom Bennett]]></dc:creator>
		<pubDate>Mon, 23 Dec 2013 13:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.pentadact.com/?p=6739#comment-507572</guid>

					<description><![CDATA[Hey, love how the game is coming along. You said in the vid that your levels will only have 1 or 2 buildings similar to gunpoint, but I was wondering how much grappling you would be able to do if it between only a couple of buildings?]]></description>
			<content:encoded><![CDATA[<p>Hey, love how the game is coming along. You said in the vid that your levels will only have 1 or 2 buildings similar to gunpoint, but I was wondering how much grappling you would be able to do if it between only a couple of buildings?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
