コード例 #1
0
	void EnableDeactivation(bool enable){
		if (!enable)
		{
			if (mSelf->getActivationState() != DISABLE_DEACTIVATION)
				mSelf->setActivationState(DISABLE_DEACTIVATION);
		}
		else
		{
			if (mSelf->getActivationState() == DISABLE_DEACTIVATION)
				mSelf->forceActivationState(ACTIVE_TAG);
		}
	}
コード例 #2
0
	// make sure mColProvider is valid.
	void ReAddRigidBodyFromWorld(){
		mSelf->forceActivationState(ACTIVE_TAG);
	}
コード例 #3
0
	void RemoveRigidBodyFromWorld(){
		mSelf->forceActivationState(WANTS_DEACTIVATION);
	}