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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2014-03-07T17:20:42+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Tau]]></name></author>
		<updated>2014-03-07T17:20:42+00:00</updated>

		<published>2014-03-07T17:20:42+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33121#p33121</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33121#p33121"/>
		<title type="html"><![CDATA[How to activate a body]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=33121#p33121"><![CDATA[
Simple question, In the begin i used m_body-&gt;setActivationState(DISABLE_DEACTIVATION); for player and NPCs but now i have too many NPC and letting them this way cause drop of fps. So i decided to remove this line, fps goes up, but now applying forces NPCs wont move them (i know the reason). So first though was activating NPC body before moving it.<br>And here's the problem. I don't know how. I tried m_body-&gt;setActivationState(ACTIVE_TAG); before moving it but id didn't work, i also tried m_body-&gt;activate(true); but neither this worked. NPCs start to move first when i ram them with player.<br>How do i activate a body without touching it with another?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9285">Tau</a> — Fri Mar 07, 2014 5:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
