<?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/12859" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-02-02T20:03:08+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Tatjam]]></name></author>
		<updated>2020-02-02T20:03:08+00:00</updated>

		<published>2020-02-02T20:03:08+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42606#p42606</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42606#p42606"/>
		<title type="html"><![CDATA[Debug Drawer &quot;lags&quot; behind rigidbody position if using maxSubSteps ≠ 0]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42606#p42606"><![CDATA[
I'm building a space simulation game using a combination of bullet physics for vessel dynamics and custom physics code for the solar system and vessel movement through space.<br><br>Everything works fine using bullet compiled to use doubles at very high velocites and far away from the origin, but the debug drawing exhibits problems whenever I step the world with a maxSubStep value that is not equal to 0. It seems to "lag behind" the rigid-body in a non-uniform manner, snapping back and forwards, but always behind the vehicle. I assume this is caused by the interpolation system.<br><br>This effect only becomes evident when moving extremely fast, which is neccesary in my game.<br><br>Here are a few photos, the vehicle is moving at around 50 km/s, physics work perfectly but the debug drawers do not (unless i set maxSubSteps to 0 which I assume shuts down the interpolation system).<br><br>Here is an example with maxSubSteps = 0:<br><img src="https://i.imgur.com/X0ILHqA.png" class="postimage" alt="Image"><br><br>And here it's using maxSubSteps = 32, you can see the debug drawers way behind the rendered object, which gets positioned using the motion state.<br><img src="https://i.imgur.com/sMJGgPg.png" class="postimage" alt="Image"><br><br>Is there any way to set the debug drawers to use the motion state? Maybe I'm better off writing my own wrapper which calls the functions with the correct btTransform.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13480">Tatjam</a> — Sun Feb 02, 2020 8:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
