Sources/CcgDump/CryBoneDesc.cpp
//////////////////////////////////////////////////////////////////////////
// updates this bone physics, from the given entity descriptor, and of the given lod

updates this bone physics, from the given entity descriptor, and of the given lod
updates this bone physics from the given entity descriptor and of the given lod
void CryBoneDesc::UpdatePhysics (const BONE_ENTITY& entity, int nLod)
{
	assert (nLod >= 0 && nLod < SIZEOF_ARRAY(m_PhysInfo));
	CopyPhysInfo(m_PhysInfo[nLod], entity.phys);
	int nFlags = 0;
	if (entity.prop[0])
	{
		nFlags = joint_no_gravity|joint_isolated_accelerations;
	}
	else
	{
		if (!strnstr(entity.prop,"gravity", sizeof(entity.prop)))
			nFlags |= joint_no_gravity;
		if (!strnstr(entity.prop,"physical",sizeof(entity.prop)))
			nFlags |= joint_isolated_accelerations;
	}
	m_PhysInfo[nLod].flags |= nFlags;
}
void CryBoneDesc :: UpdatePhysics ( const BONE_ENTITY & entity , int nLod ) { assert ( nLod >= 0 && nLod < SIZEOF_ARRAY ( m_PhysInfo ) ) ; CopyPhysInfo ( m_PhysInfo [ nLod ] , entity . phys ) ; int nFlags = 0 ; if ( entity . prop [ 0 ] ) { nFlags = joint_no_gravity | joint_isolated_accelerations ; } else { if ( ! strnstr ( entity . prop , " " , sizeof ( entity . prop ) ) ) nFlags |= joint_no_gravity ; if ( ! strnstr ( entity . prop , " " , sizeof ( entity . prop ) ) ) nFlags |= joint_isolated_accelerations ; } m_PhysInfo [ nLod ] . flags |= nFlags ; }
updates this bone physics, from the given entity descriptor, and of the given lod
updates this bone physics from the given entity descriptor and of the given lod