本文整理汇总了C++中Matrix34::GetRow4方法的典型用法代码示例。如果您正苦于以下问题:C++ Matrix34::GetRow4方法的具体用法?C++ Matrix34::GetRow4怎么用?C++ Matrix34::GetRow4使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Matrix34
的用法示例。
在下文中一共展示了Matrix34::GetRow4方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LogDeformPhysicalEntity
void LogDeformPhysicalEntity( const char * from, IPhysicalEntity * pEnt, const Vec3& p, const Vec3& n, float energy )
{
#if DEBUG_NET_BREAKAGE
if (!pEnt)
return;
if (CNetworkCVars::Get().BreakageLog)
{
CryLog("[brk] DeformPhysicalEntity on %s @ (%.8f,%.8f,%.8f); n=(%.8f,%.8f,%.8f); energy=%.8f", from, p.x, p.y, p.z, n.x, n.y, n.z, energy);
CryLog("[brk] selector is %s", CObjectSelector::GetDescription(pEnt).c_str());
switch (pEnt->GetiForeignData())
{
case PHYS_FOREIGN_ID_STATIC:
if (IRenderNode * pRN = (IRenderNode*)pEnt->GetForeignData(PHYS_FOREIGN_ID_STATIC))
{
CryLog("[brk] name is %s", pRN->GetName());
CryLog("[brk] entity class name is %s", pRN->GetEntityClassName());
CryLog("[brk] debug string is %s", pRN->GetDebugString().c_str());
}
break;
case PHYS_FOREIGN_ID_ENTITY:
if (IEntity * pEntity = (IEntity*)pEnt->GetForeignData(PHYS_FOREIGN_ID_ENTITY))
{
CryLog("[brk] name is %s", pEntity->GetName());
Matrix34 m = pEntity->GetWorldTM();
CryLog("[brk] world tm:");
for (int i=0; i<3; i++)
{
Vec4 row = m.GetRow4(i);
CryLog("[brk] %+12.8f %+12.8f %+12.8f %+12.8f", row[0], row[1], row[2], row[3]);
}
}
break;
}
}
#endif
}
开发者ID:NightOwlsEntertainment,项目名称:PetBox_A_Journey_to_Conquer_Elementary_Algebra,代码行数:37,代码来源:DeformingBreak.cpp