How to activate a body

Tau
Posts: 25
Joined: Tue May 01, 2012 11:52 am

How to activate a body

Post by Tau »

Simple question, In the begin i used m_body->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.
And here's the problem. I don't know how. I tried m_body->setActivationState(ACTIVE_TAG); before moving it but id didn't work, i also tried m_body->activate(true); but neither this worked. NPCs start to move first when i ram them with player.
How do i activate a body without touching it with another?