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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2011-10-24T01:40:45+00:00</updated>

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

		<entry>
		<author><name><![CDATA[JohnBoyMan]]></name></author>
		<updated>2011-10-24T01:40:45+00:00</updated>

		<published>2011-10-24T01:40:45+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25953#p25953</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25953#p25953"/>
		<title type="html"><![CDATA[btBvhTriangleMeshShape link error]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=25953#p25953"><![CDATA[
Hello. I am trying to use the btBvhTriangleMeshShapes like this.<br><div class="codebox"><p>Code: </p><pre><code>    btTriangleMesh *    mTriMesh = new btTriangleMesh();Ogre::Vector3        *vertices;        unsigned int numFaces = 2 / 3;  int *indices;        btVector3    vertexPos[3];        for (size_t n = 0; n &lt; numFaces; ++n)        {            for (unsigned int i = 0; i &lt; 3; ++i)            {                const Ogre::Vector3 &amp;vec = vertices[*indices];                vertexPos[i][0] = vec.x;                vertexPos[i][1] = vec.y;                vertexPos[i][2] = vec.z;                *indices++;            }            mTriMesh-&gt;addTriangle(vertexPos[0], vertexPos[1], vertexPos[2]);        }const bool useQuantizedAABB = true;        btBvhTriangleMeshShape *mShape = new btBvhTriangleMeshShape(mTriMesh, useQuantizedAABB);    btTransform groundTransform11;    groundTransform11.setIdentity();    groundTransform11.setOrigin(btVector3(BtOgre::Convert::toBullet( mW[k2] + Ogre::Vector3( 0,6,0 ) )));    btScalar mass1( 0.0 );    //bool isDynamic1 = ( mass1 != 0.f );  btVector3 localInertia1( 0,0,0 );    //if ( isDynamic1 )    //mGroundShape-&gt;calculateLocalInertia( mass1,localInertia );MyMotionState* motionState11 = new MyMotionState( groundTransform11,rampNode[k2] );    btRigidBody::btRigidBodyConstructionInfo rbInfo1( 1,motionState11,mShape,localInertia1 );    body7[0] = new btRigidBody( rbInfo1 );body7[0]-&gt;setFriction( 0.1f );     //body-&gt;setCollisionFlags(body-&gt;getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT); // It should be kinematic    body7[0]-&gt;setActivationState(DISABLE_DEACTIVATION); //It should do it's job each and every frame//add the body to the dynamics world    //errror source of access violation called before initializd     //  rampNode[k2] -&gt;setPosition(mW[k2] + Ogre::Vector3( 0,0,0 ));//buildDynamicsworld();  dynamicsWorld-&gt;addRigidBody(body7[0]);</code></pre></div><br>I get this error<br><blockquote class="uncited"><div><br>Error1error LNK2005: "public: virtual __thiscall btPolyhedralConvexShape::~btPolyhedralConvexShape(void)" (??1btPolyhedralConvexShape@@UAE@XZ) already defined in OgreBulletCollisions.lib(OgreBulletCollisionsTriangleShape.obj)C:\Users\john\documents\visual studio 2010\Projects\game\game\BulletCollision.lib(btPolyhedralConvexShape.obj)game<br></div></blockquote>All the right libs and headers are referenced. Its soooo annoying please help.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=8343">JohnBoyMan</a> — Mon Oct 24, 2011 1:40 am</p><hr />
]]></content>
	</entry>
	</feed>
