<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/1868" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2008-11-24T04:00:17+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/1868</id>

		<entry>
		<author><name><![CDATA[hiker]]></name></author>
		<updated>2008-11-24T04:00:17+00:00</updated>

		<published>2008-11-24T04:00:17+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11532#p11532</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11532#p11532"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11532#p11532"><![CDATA[
Hi,<br><br>thanks for your quick reply!<br><blockquote class="uncited"><div>Things have changed quite a bit since I last posted in this thread. We are now using a convex hull for our kart physics shape.<br><br>The reason for this change was mainly because we wanted the kart to bounce off surfaces in a different way. We wanted more curvature to the kart's body than a simple box provides. We also put a small "hump" at the top of the shape and as a result, the kart doesn't get stuck upside down anymore  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> </div></blockquote>Ah, makes sense. We added an 'upright' constraint, which helps that our karts stay parallel to the ground while they are in the air. And if a kart should end up upside down (even though somewhat unlikely), it will get automatically rescued.<br><blockquote class="uncited"><div>We use the same physical shape for all karts regardless of graphics. The physical kart is only on the server so doesn't even know that graphics exist. We have then just tweaked all the different variables of the kart (and still tweak every week in some way) until it generally feels right.</div></blockquote>OK, I guess your karts have a more similar size. We are re-doing two models now, the two with the biggest problems in terms of physics.<br><blockquote class="uncited"><div>It is enough effort to tweak one kart type, we didn't want to complicated things by tweaking each and every graphical kart. There are some minor graphical glitches I suppose but nothing I notice and nothing that gets in the way of enjoying the game at least.</div></blockquote>Yes, that's a good point. We have done this in the past (one extremly small and tall kart was actually using a 'normal' physical shape, and no one ever complained about). Guess I was a bit too perfectionist in trying to have all shapes/sized 'correct'.<br><br>Thanks a lot for your quick answer!<br>   Joerg<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1091">hiker</a> — Mon Nov 24, 2008 4:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Murphy]]></name></author>
		<updated>2008-11-21T06:58:32+00:00</updated>

		<published>2008-11-21T06:58:32+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11508#p11508</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11508#p11508"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11508#p11508"><![CDATA[
Things have changed quite a bit since I last posted in this thread. We are now using a convex hull for our kart physics shape.<br><br>The reason for this change was mainly because we wanted the kart to bounce off surfaces in a different way. We wanted more curvature to the kart's body than a simple box provides. We also put a small "hump" at the top of the shape and as a result, the kart doesn't get stuck upside down anymore  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>We use the same physical shape for all karts regardless of graphics. The physical kart is only on the server so doesn't even know that graphics exist. We have then just tweaked all the different variables of the kart (and still tweak every week in some way) until it generally feels right. It is enough effort to tweak one kart type, we didn't want to complicated things by tweaking each and every graphical kart. There are some minor graphical glitches I suppose but nothing I notice and nothing that gets in the way of enjoying the game at least.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1909">Murphy</a> — Fri Nov 21, 2008 6:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hiker]]></name></author>
		<updated>2008-11-21T03:47:21+00:00</updated>

		<published>2008-11-21T03:47:21+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11506#p11506</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11506#p11506"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11506#p11506"><![CDATA[
Just a quick question:<blockquote class="uncited"><div><blockquote class="uncited"><div>Are you using just a bounding box for the car</div></blockquote>Yep. btCollisionShape * chassisShape = new btBoxShape(btVector3(0.5f, 0.2f, 0.625f));</div></blockquote>In SuperTuxKart I am having a really hard time defining the physics parameters for all our karts - some karts keep on toppling over, don't accelerate properly, sometimes even sink into the ground. The main reason appears to be that all our models have a different size and therefore a different bounding box (which we use for the kart chassis) - I am running out of ideas short of tweaking each model separately. How are you handling this?<ul><li>Do you use the same box shape for each model, indepent of the graphics model size?</li><li>If yes, what do you do about graphical glitches (e.g. if the graphic model is smaller, you might get a collision in the physics model, but not in the graphics)? Or are you in the lucky position that all your karts have (roughly) the same size?</li><li>If not, do you modify the physics parameters for each kart? Or did you try to use one rigid body for the physics, and 'surround' it with a collision shape (not even sure if this works in bullet)? I.e. forces etc. act on the physics body, but collisions are detected via the larger collision shape around it?</li><li>Or anything else?</li></ul>Cheers,<br>   Joerg<br>~<br>~<br>~<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1091">hiker</a> — Fri Nov 21, 2008 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[adam23]]></name></author>
		<updated>2008-06-17T04:11:13+00:00</updated>

		<published>2008-06-17T04:11:13+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8790#p8790</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8790#p8790"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8790#p8790"><![CDATA[
-We do apply steering values based on time.<br><br>Its interesting that you use a set box size for your karts, that may be one of the issues I am having.  I was generating based on the mesh size of the car.<br><br>That helps immensly, thanks a ton!<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2515">adam23</a> — Tue Jun 17, 2008 4:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Murphy]]></name></author>
		<updated>2008-06-16T04:39:11+00:00</updated>

		<published>2008-06-16T04:39:11+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8769#p8769</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8769#p8769"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8769#p8769"><![CDATA[
First of all, I'll just paste my general setup here for reference:<div class="codebox"><p>Code: </p><pre><code>centerOfMass = btVector3(0.f, 0.3f, 0.08f);btCollisionShape * chassisShape = new btBoxShape(btVector3(0.5f, 0.2f, 0.625f));btCompoundShape * compound = new btCompoundShape();btTransform localTrans;localTrans.setIdentity();//localTrans effectively shifts the center of mass with respect to the chassislocalTrans.setOrigin(centerOfMass);compound-&gt;addChildShape(localTrans, chassisShape);btTransform tr;tr.setIdentity();tr.setOrigin(btVector3(0, 0, 0));carChassis = CreateRigidBody(tr, compound, GetMotionState());carChassis-&gt;setDamping(0.2f, 0.2f);</code></pre></div><blockquote class="uncited"><div>The Kart tips over very easily.</div></blockquote>We use a low center of mass along with a Roll Influence value of 1.<br><blockquote class="uncited"><div>Steering is all or nothing</div></blockquote>Are you changing your steering value over time or directly setting it upon a key press? You need to make sure the turning happens over time (just like a real car).<br><blockquote class="uncited"><div>Do you guys use OgreBullet to handle your physics?</div></blockquote>No, I wrote my own wrapper as we needed to simulate most of the physics on the server which doesn't have any concept of Ogre.<br><blockquote class="uncited"><div>How do you get your karts so low to the ground</div></blockquote>This was just a matter of tweaking the suspension and mass until it looked and felt right.<br><blockquote class="uncited"><div>Anytime I lower the box closer to the road, the box will hit parts of the road ( especially when going up a ramp or anything similar ).</div></blockquote>Try stiffening your suspension I suppose. We had the same problem when the kart hit a ramp too fast. To fix this we designed our ramps on a curve instead of a hard angle.<br><blockquote class="uncited"><div>Are you using just a bounding box for the car</div></blockquote>Yep. btCollisionShape * chassisShape = new btBoxShape(btVector3(0.5f, 0.2f, 0.625f));<br><blockquote class="uncited"><div>How do you make your suspension almost non-existent</div></blockquote>It actually does exist and is necessary to give the whole thing some damping upon landing from a ramp, etc. It isn't visible on the client because I don't send the wheel positions over the network. It was determined to be too much data to transfer for something that isn't even expected on a kart type vehicle.<br><br>Here are the suspension values we use:<br>SuspensionStiffness = 100<br>SuspensionDamping = 20<br>SuspensionCompression = 4.2<br>SuspensionRestLength = 0.3<br>(Note: these values are most likely dependent on other values such as mass)<br><blockquote class="uncited"><div>Are your vehicles front wheel, rear wheel, or 4 wheel drive?</div></blockquote>2 rear wheel drive.<br><blockquote class="uncited"><div>What is the average mass your using for vehicles</div></blockquote>We use 400 now for all our karts.<br><br>Hope the info helps. Good luck!  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1909">Murphy</a> — Mon Jun 16, 2008 4:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[adam23]]></name></author>
		<updated>2008-06-16T04:13:32+00:00</updated>

		<published>2008-06-16T04:13:32+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8768#p8768</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8768#p8768"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8768#p8768"><![CDATA[
That would be really great, I have been fighting with setting up vehicles for quite a while now.  I hope I don't overwhelm you with to many questions.<br><br>So basically right now this is the process we use to pull Karts in.  The car is exported from MAX with a skeleton used to position the tires.<br><br>The main issues I have right now are these.<br><br>-The Kart tips over very easily.<br>-Steering is all or nothing, ( meaning I can't seem to get the smooth Mario Kart like turns around corners, instead it seems like a tire lifts off of the track and spins the car ).<br><br><br>Do you guys use OgreBullet to handle your physics?  I'm guessing no because in the 6 weeks i've been using it i've already found quite a few bugs.<br><br>How do you get your karts so low to the ground, are you offsetting the position of the mesh from the collision box?  Anytime I lower the box closer to the road, the box will hit parts of the road ( especially when going up a ramp or anything similar ).<br><br>Are you using just a bounding box for the car, or do you use something else?<br><br>How do you make your suspension almost non-existent ( at least from what i've seen in the videos )?  This is exactly the effect i'm looking to achieve?  Meaning your tires don't seem to move up and down at all.  I've got the suspension stiffness variable set pretty high, but that doesn't seem to accomplish it.<br><br>Are your vehicles front wheel, rear wheel, or 4 wheel drive?<br><br>What is the average mass your using for vehicles ( i've seen 250 - 800 used in demos )?<br><br><br>I guess my main problem right now is keeping all 4 tires on the road, which would probably improve the control around turns as well.<br><br>Thanks<br>Adam<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2515">adam23</a> — Mon Jun 16, 2008 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Murphy]]></name></author>
		<updated>2008-06-15T16:26:58+00:00</updated>

		<published>2008-06-15T16:26:58+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8764#p8764</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8764#p8764"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8764#p8764"><![CDATA[
Setting up the vehicle actually took a lot of time and tuning. It is basically the raycast vehicle that comes with bullet but with alot of additional functionality on top of it.<br><br>I would be happy to answer any questions related to it but it would be hard to provide all the code as it is split between client/server code and multiple .h/.cpp/.lua files throughout the project.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1909">Murphy</a> — Sun Jun 15, 2008 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[adam23]]></name></author>
		<updated>2008-06-15T16:19:19+00:00</updated>

		<published>2008-06-15T16:19:19+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8763#p8763</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8763#p8763"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8763#p8763"><![CDATA[
I've been following this game for a long time, and its really looking good.<br><br>Are there any plans on revealing how you setup your vehicle physics using Bullet, even just some advice?<br><br>Adam Larson<br>Game Programmer<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2515">adam23</a> — Sun Jun 15, 2008 4:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Murphy]]></name></author>
		<updated>2008-06-09T16:28:16+00:00</updated>

		<published>2008-06-09T16:28:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8702#p8702</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8702#p8702"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8702#p8702"><![CDATA[
New video! This one shows off in-game sounds, items, and our new gameplay mode: Fallout<br><br><a href="http://www.vimeo.com/1141627" class="postlink"><img src="http://myzerogear.com/falloutvid.jpg" class="postimage" alt="Image"></a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1909">Murphy</a> — Mon Jun 09, 2008 4:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Murphy]]></name></author>
		<updated>2008-04-22T17:28:01+00:00</updated>

		<published>2008-04-22T17:28:01+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8163#p8163</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8163#p8163"/>
		<title type="html"><![CDATA[Re: Zero Gear - Kart racing game using Bullet]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=8163#p8163"><![CDATA[
<a href="http://www.vimeo.com/769438" class="postlink"><img src="http://www.devbump.com/nimblebit.com/tagvideo.jpg" class="postimage" alt="Image"></a><br><br>In this video we are using a “Tag” type game mode as an intitial test of our gameplay scripting system. Using the experience from this we will design bigger and more exciting gameplay!<br><br>In this mode, players compete for the longest amount of time being "IT". The longer you are "IT" the more points you rack up. There is also a 3 second immunity after you have become "IT". For this level, we also made points accumulate faster the closer you are to the middle, to encourage people to duke it out in the middle ring.<br><br>The test was a lot of fun, and gave us a lot of ideas and feedback for how we are going to implement more gameplay features in the near future!<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1909">Murphy</a> — Tue Apr 22, 2008 5:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
