<?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: Little Longhorn &#8211; Part 3 – Collision, Detection and Selection (Help needed)	</title>
	<atom:link href="https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/feed/" rel="self" type="application/rss+xml" />
	<link>https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/</link>
	<description>Building enterprise solutions by day and games by night</description>
	<lastBuildDate>Sat, 18 Oct 2014 18:42:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6</generator>
	<item>
		<title>
		By: Sergey		</title>
		<link>https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/#comment-22</link>

		<dc:creator><![CDATA[Sergey]]></dc:creator>
		<pubDate>Thu, 30 Jul 2009 04:36:55 +0000</pubDate>
		<guid isPermaLink="false">/post/2009/07/27/Little-Longhorn-e28093-Part-3-e28093-Collision-Detection-and-Selection-(Help-needed).aspx#comment-22</guid>

					<description><![CDATA[It&#039;s ok - expressive smiles must be large :)]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s ok &#8211; expressive smiles must be large :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mads		</title>
		<link>https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/#comment-21</link>

		<dc:creator><![CDATA[Mads]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 08:20:57 +0000</pubDate>
		<guid isPermaLink="false">/post/2009/07/27/Little-Longhorn-e28093-Part-3-e28093-Collision-Detection-and-Selection-(Help-needed).aspx#comment-21</guid>

					<description><![CDATA[1. I have tried it only once actually. I&#039;m using FireFox normally and it doesn&#039;t hang for me. Sadly I can&#039;t reproduce the problem, so don&#039;t know whats wrong and can&#039;t fix it.

2. I know, even though I&#039;m refering to the Joel Neubeck articles pretty much, they are not THE right way and completely error free. Actually he had a pretty bad bug in the Vector struct, which is used pretty many places. Right now I&#039;m using the collision code, pretty much as he provided it, because it works right now, and then later on I will go back and optimize it.

PS: Damm, comments look like crap here on my blog, when there are smilies in them. I need to look into that. :)]]></description>
			<content:encoded><![CDATA[<p>1. I have tried it only once actually. I&#8217;m using FireFox normally and it doesn&#8217;t hang for me. Sadly I can&#8217;t reproduce the problem, so don&#8217;t know whats wrong and can&#8217;t fix it.</p>
<p>2. I know, even though I&#8217;m refering to the Joel Neubeck articles pretty much, they are not THE right way and completely error free. Actually he had a pretty bad bug in the Vector struct, which is used pretty many places. Right now I&#8217;m using the collision code, pretty much as he provided it, because it works right now, and then later on I will go back and optimize it.</p>
<p>PS: Damm, comments look like crap here on my blog, when there are smilies in them. I need to look into that. :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mads		</title>
		<link>https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/#comment-20</link>

		<dc:creator><![CDATA[Mads]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 08:16:25 +0000</pubDate>
		<guid isPermaLink="false">/post/2009/07/27/Little-Longhorn-e28093-Part-3-e28093-Collision-Detection-and-Selection-(Help-needed).aspx#comment-20</guid>

					<description><![CDATA[Hi Sergey
First of all, thanks for taking your time an read the entire post, I was a long one, too long I have learned.

I have created a post on the silverlight forum, linking to this post, hoping people could help me from there: http://betaforums.silverlight.net/forums/t/114354.aspx

1. It had a &#034;sliding&#034; effect. I actually knew that setting the Velocity to 0 wasn&#039;t what I needed, I just tried it out for fun. There are a post in the forum thread talking about how I can make this work. Haven&#039;t had time to look at this &#034;Block&#034; collision yet.

3. Well, I see what you mean, but for me the code need to make sense. I&#039;m currently working on a solution about this &#034;Detection&#034; and &#034;Selection&#034; stuff, it doesn&#039;t work right now, but I&#039;m sure I&#039;m on the right track, just need time to implement it fully. I got the idea for the implementation I&#039;m currently working on by talking to Cameron Albert and reading the posts on the silverlight.net forum thread.]]></description>
			<content:encoded><![CDATA[<p>Hi Sergey<br />
First of all, thanks for taking your time an read the entire post, I was a long one, too long I have learned.</p>
<p>I have created a post on the silverlight forum, linking to this post, hoping people could help me from there: <a href="http://betaforums.silverlight.net/forums/t/114354.aspx" rel="nofollow ugc">http://betaforums.silverlight.net/forums/t/114354.aspx</a></p>
<p>1. It had a &quot;sliding&quot; effect. I actually knew that setting the Velocity to 0 wasn&#8217;t what I needed, I just tried it out for fun. There are a post in the forum thread talking about how I can make this work. Haven&#8217;t had time to look at this &quot;Block&quot; collision yet.</p>
<p>3. Well, I see what you mean, but for me the code need to make sense. I&#8217;m currently working on a solution about this &quot;Detection&quot; and &quot;Selection&quot; stuff, it doesn&#8217;t work right now, but I&#8217;m sure I&#8217;m on the right track, just need time to implement it fully. I got the idea for the implementation I&#8217;m currently working on by talking to Cameron Albert and reading the posts on the silverlight.net forum thread.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sergey		</title>
		<link>https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/#comment-19</link>

		<dc:creator><![CDATA[Sergey]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 03:19:04 +0000</pubDate>
		<guid isPermaLink="false">/post/2009/07/27/Little-Longhorn-e28093-Part-3-e28093-Collision-Detection-and-Selection-(Help-needed).aspx#comment-19</guid>

					<description><![CDATA[P.S. 

1. Your site(blog) hangs up my Firefox all the time while loading :)

2. Be careful with Joel Neubeck&#039; articles: there are enough logical errors. Also some of his code is too complicated, for example colliding bounging box and sphere. Here is how it looks in my code now:

static public bool Check(BoundingBox b, BoundingSphere s)
{
	Vector shiftCenter = AbsVector(b.Center - s.Center);
	double extX = b.Extent.X + s.Radius;
	double extY = b.Extent.Y + s.Radius;

	if (shiftCenter.X &#060;= extX &#038;&#038; shiftCenter.Y &#060;= extY)
	{
		b.Hit = s.Hit = true;
		return true;
	}

	return false;
}

Best Regards :)]]></description>
			<content:encoded><![CDATA[<p>P.S. </p>
<p>1. Your site(blog) hangs up my Firefox all the time while loading :)</p>
<p>2. Be careful with Joel Neubeck&#8217; articles: there are enough logical errors. Also some of his code is too complicated, for example colliding bounging box and sphere. Here is how it looks in my code now:</p>
<p>static public bool Check(BoundingBox b, BoundingSphere s)<br />
{<br />
	Vector shiftCenter = AbsVector(b.Center &#8211; s.Center);<br />
	double extX = b.Extent.X + s.Radius;<br />
	double extY = b.Extent.Y + s.Radius;</p>
<p>	if (shiftCenter.X &lt;= extX &amp;&amp; shiftCenter.Y &lt;= extY)<br />
	{<br />
		b.Hit = s.Hit = true;<br />
		return true;<br />
	}</p>
<p>	return false;<br />
}</p>
<p>Best Regards :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sergey		</title>
		<link>https://laumania.net/2009/07/27/little-longhorn-part-3-collision-detection-and-selection-help-needed/#comment-18</link>

		<dc:creator><![CDATA[Sergey]]></dc:creator>
		<pubDate>Wed, 29 Jul 2009 03:03:57 +0000</pubDate>
		<guid isPermaLink="false">/post/2009/07/27/Little-Longhorn-e28093-Part-3-e28093-Collision-Detection-and-Selection-(Help-needed).aspx#comment-18</guid>

					<description><![CDATA[1. You said in “Block” collision: ...but it didn’t have the right effect :)
But what effect it had??

2. “Detection” of enemies 

I think you act quite right.


3. “Selection” of elements: ..this is also a kind of “collision”, but at the same time it’s conceptually not, because nothing is actually colliding logically.  

What I think about it:

- It&#039;s doesn&#039;t matter about your conceptual confusion if it works well :) . As you said before in answer to my post: &#034;let the pattern be the solution to my problems, not a barrier&#034;, now replace the word &#034;pattern&#034; with &#034;concept&#034; :)
- You can just find the closest center of your &#034;building&#034; spot to your character&#039;s center because there may be more then one spots next to it and there may be trouble while using collision to detect it (which of two spots to shoose?). But anyway even in this case you can choose only the first one and skip the others.
]]></description>
			<content:encoded><![CDATA[<p>1. You said in “Block” collision: &#8230;but it didn’t have the right effect :)<br />
But what effect it had??</p>
<p>2. “Detection” of enemies </p>
<p>I think you act quite right.</p>
<p>3. “Selection” of elements: ..this is also a kind of “collision”, but at the same time it’s conceptually not, because nothing is actually colliding logically.  </p>
<p>What I think about it:</p>
<p>&#8211; It&#8217;s doesn&#8217;t matter about your conceptual confusion if it works well :) . As you said before in answer to my post: &quot;let the pattern be the solution to my problems, not a barrier&quot;, now replace the word &quot;pattern&quot; with &quot;concept&quot; :)<br />
&#8211; You can just find the closest center of your &quot;building&quot; spot to your character&#8217;s center because there may be more then one spots next to it and there may be trouble while using collision to detect it (which of two spots to shoose?). But anyway even in this case you can choose only the first one and skip the others.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
