void TriggerDoorEntity_cl::InitFunction()
{
	VisBaseEntity_cl::InitFunction();
  
	GetPosition(m_vStartPos);
  SetUseEulerAngles(FALSE);

	m_Components.EnsureCapacity(m_Components.Count()+2);

	VisTriggerTargetComponent_cl *pOpenComp = 
		new VisTriggerTargetComponent_cl(
		TRIGGERDOOR_OPEN,  // trigger name, used in message function
		VIS_OBJECTCOMPONENTFLAG_SERIALIZEWHENRELEVANT);  // component flag(s)
	AddComponent(pOpenComp);

	VisTriggerTargetComponent_cl *pCloseComp = 
		new VisTriggerTargetComponent_cl(
		TRIGGERDOOR_CLOSE,  // trigger name, used in message function
		VIS_OBJECTCOMPONENTFLAG_SERIALIZEWHENRELEVANT);  // component flag(s)
	AddComponent(pCloseComp);
}
VSkeletalBoneProxyObject::VSkeletalBoneProxyObject()
{
  SetUseEulerAngles(FALSE);
  m_iBoneIndex = -1;
  VSkeletalBoneProxyManager::g_BoneProxyManager.AddProxy(this);
}
示例#3
0
void ClothEntity_cl::BaseInit()
{
  SetUseEulerAngles(FALSE);
}