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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2023-01-22T15:52:24+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Realsphere]]></name></author>
		<updated>2023-01-22T15:52:24+00:00</updated>

		<published>2023-01-22T15:52:24+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44216#p44216</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44216#p44216"/>
		<title type="html"><![CDATA[VHACD in BulletSharp]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44216#p44216"><![CDATA[
Howdy!<br><br>Im using BulletSharp in my app with VHACD, now when i start my app and use VHACD to generate my Convex Hulls, i get a offset and my objects start floating around.<br><br>i dont know why.<br><br>This is my code:<br><div class="codebox"><p>Code: </p><pre><code>CompoundShape cs = new CompoundShape();            VHacdSharp.VHacd vhacd = new VHacdSharp.VHacd();            var result = vhacd.ComputeAsync(go.renderer.Mesh.points.ToArray(), go.renderer.Mesh.tris.ToArray(), defaultvhacdparams).Result;            foreach (VHacdSharp.ConvexHull hull in result.ConvexHulls)            {                List&lt;float&gt; verts = new List&lt;float&gt;();                foreach (var item in hull.Vertices)                    verts.AddRange(new float[]                    {                        (float)item.X,                        (float)item.Y,                        (float)item.Z                    });                ConvexHullShape chs = new ConvexHullShape(verts.ToArray());                cs.AddChildShape(DXConversionHelper.DXToSN(                    Matrix.Scaling((float)hull.Volume)                    ), chs);            }            return cs;</code></pre></div>What am i doing wrong?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14499">Realsphere</a> — Sun Jan 22, 2023 3:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
