<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>I need some help with implementation of library [JigLibX]</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx</link>
		<description>Posts in the discussion thread &quot;I need some help with implementation of library [JigLibX]&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Fri, 07 Aug 2026 18:51:59 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-462169#post-1421357</guid>
				<title>Re: I need some help with implementation of library [JigLibX]</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx#post-1421357</link>
				<description></description>
				<pubDate>Thu, 19 Apr 2012 18:10:01 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks and good luck! As you learn more about how JigLibX works, I'd love to <a href="http://rbwhitaker.wikidot.com/contact">hear from you</a> about how it is. I occasionally get people asking me questions about what libraries to use for this or that, and it would be nice if I could perhaps share some of your thoughts on JigLibX with them. Good or bad.</p> <p>By the way, I looked into JigLibX a bit, and I saw that their last update was over three years ago. That makes me a little bit nervous, but even still, as you get going with it, I'd love to hear what you think anyway.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-462169#post-1421288</guid>
				<title>Re: I need some help with implementation of library [JigLibX]</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx#post-1421288</link>
				<description></description>
				<pubDate>Thu, 19 Apr 2012 17:26:10 +0000</pubDate>
				<wikidot:authorName>iorus</wikidot:authorName>				<wikidot:authorUserId>1330518</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks man you are awesome, your answer helped me so much,the library implementation was successful ,now i have to learn the API of this library (think that it will take some time XD)</p> <p>I learned many things of your detailed explanation thanks again, I'm sure that the book that you're writing will be great&#8230;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-462169#post-1420035</guid>
				<title>Re: I need some help with implementation of library [JigLibX]</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx#post-1420035</link>
				<description></description>
				<pubDate>Wed, 18 Apr 2012 18:54:58 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yeah, so it sounds like you've got source code for the library, and you're trying to actually run it. Visual Studio/Visual C# Express gives you about three different ways to compile code, and that is (a) as a GUI application, (b) as a console application (in which case, the black console window will appear) and (c) as a class library. For the first two options, the end result of compiling will be an .exe file. These files have a specific starting point (the <em>Main</em> method) that will run when the executable is started.</p> <p>A class library on the other hand, results in a .dll file instead. It does not have a specific entry point (no <em>Main</em> method). So, while you should be able to compile it, you won't be able to directly run it. The purpose of a DLL like this is to simply contain a bunch of code that other programs (like your game) can use as needed. Those other programs will have their own entry point, and they'll just use the code in the DLL when they need it. While I've never used JigLibX, but I'd expect it to be a class library that compiles to a DLL like this.</p> <p>You can, of course, set up your game to reference a DLL. I'll get to the details of that in a second.</p> <p>It sounds like you've also got the source code for this library, which will also give you a few other options for how you can access it in your game.</p> <h2><span>Reference the DLL</span></h2> <p>To use the DLL directly, go over to your Solution Explorer. At the very top, you'll see something like this:</p> <div class="code"> <pre><code>Solution 'WindowsGame1' (2 projects) WindowsGame1 Properties References Content References (a bunch of other things...) WindowsGame1Content (Content) References (more stuff here...)</code></pre></div> <p>What you'll do, is you'll right-click on <strong>References</strong> and choose <strong>Add Reference</strong>. This will bring up the Add Reference dialog.</p> <p>What you do next depends on if you want to directly load the DLL, or if you want to load the source code as a project within your solution.</p> <p>If you want to load the DLL directly, you would click on the <strong>Browse</strong> tab and look around for the DLL on your computer.</p> <p>When this is done, you should see the name of the assembly (likely the same as the name of the DLL, without the extension) listed under the References node in your game's project in the Solution Explorer.</p> <h2><span>Reference the Source Code</span></h2> <p>If you have the source code, and you want to load the source code as a project, you will right-click on the top Solution node and click <strong>Add &gt; Existing Project</strong>. You will then be able to browse through your system to find the *.csproj file for the library.</p> <p>Once you have chosen the *.csproj file, you will see a new (third) project appear in your solution. So you'll have your main game project, your content project, and the one you added.</p> <p>But you're not done, at this point. You still need to tell your main game project that it is allowed to use the code in the other (JigLibX) project. So right click on the <strong>References</strong> node under your game's project, and choose <strong>Add Reference</strong>. Click on the <strong>Projects</strong> tab, and you should see the JigLibX project listed there. Select it and press OK.</p> <h2><span><em>Using</em> Directives</span></h2> <p>Regardless of which of these two approaches you take, you'll still need to add a <em>using</em> directive to your file to make use of the code (unless you really want to use fully-qualified names for everything).</p> <p>See, adding a reference (either to the DLL or the project that contains the source code) simply tells your game about the library (JigLibX in this case) so that it knows where to find it. In your own game's code, you'll want to add <em>using</em> directives so that you don't need to always use the fully qualified names of things. (For example, the <em>using Microsoft.Xna.Framework;</em> line makes it so you can just reference <em>Vector2</em> and <em>Vector3</em> by their name, instead of always needing to use <em>Microsoft.Xna.Framework.Vector2</em> and <em>Microsoft.Xna.Framework.Vector3</em>.</p> <p>I hope that gets you going. I actually have a couple of chapters about this kind of stuff in the C# book I'm writing. (After all, this isn't really an XNA topic, it's a C# topic.) It's not currently in my C# tutorials, which is why I took the time to write up an answer here. But some of that information that is in the book but not the tutorials (possibly including this) will end up being added to the tutorials eventually.</p> <p>Give some of those things a try. Let me know if you run into problems. I don't know anything about JigLibX, so I can't help you with anything there, specifically. Maybe someone else here does, though. If you're having C# or XNA specific problems, I'd be happy to help you with that.</p> <p>Let me know how it goes.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-462169#post-1419725</guid>
				<title>Re: I need some help with implementation of library [JigLibX]</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx#post-1419725</link>
				<description></description>
				<pubDate>Wed, 18 Apr 2012 14:10:45 +0000</pubDate>
				<wikidot:authorName>iorus</wikidot:authorName>				<wikidot:authorUserId>1330518</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I'm sorry , The problem is that i don't know how to implement this (or any) library to my project, so I started by compiling the project that i downloaded (F7)&#8230;<br /> The point is that i need some information about implementing this library to my project &#8230; I've searching information about and I need to implement the library to a project before trying to use it (I'm an Idiot I know XD) ,I just thought that it comes with an use example&#8230; and Sorry for the dumb question.<br /> - This was the error<br /> &quot;A project with an output Type of class library can't be started directly&quot;</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-462169#post-1419409</guid>
				<title>Re: I need some help with implementation of library [JigLibX]</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx#post-1419409</link>
				<description></description>
				<pubDate>Wed, 18 Apr 2012 04:58:40 +0000</pubDate>
				<wikidot:authorName>rbwhitaker</wikidot:authorName>				<wikidot:authorUserId>88099</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Is this an actual error in the JigLib library, or in your own game code?</p> <p>Can you be more specific about the errors you're seeing?</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-462169#post-1419382</guid>
				<title>I need some help with implementation of library [JigLibX]</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-462169/i-need-some-help-with-implementation-of-library-jiglibx#post-1419382</link>
				<description></description>
				<pubDate>Wed, 18 Apr 2012 04:03:47 +0000</pubDate>
				<wikidot:authorName>iorus</wikidot:authorName>				<wikidot:authorUserId>1330518</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well i found an apparently good physics library called [JigLib] in this site</p> <p>www[dot]3dgametechnology[dot]com/wp/jiglibx-for-xna-4-0/</p> <p>I downloaded the project but when I try to compile it, I got error reference related errors , please i don't have experience handling this kind of errors &#8230; can someone help me?</p> <p>I need a compiled version for XNA 4.0 of the above project</p> <p>Thanks&#8230; sorry about the link seems that i cant post any url because of low karma n_n</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>