{qNormalizeAngle(angle);if(angle != yRot) { yRot = angle; updateGL(); } } 开发者ID:gaugusto,项目名称:CellAut3D,代码行数:8,代码来源:glwidget.cpp 示例7: qNormalizeAngle ▲点赞 1▼ voidCompasWidget::setZRotation(intangle){qNormalizeAngle(angle);if(angle != m_zRot) { m_zRot = ...
vectoangles(bulletPath, bulletAngle);inthitRotation =AngleNormalize360(entity.oldEnt->client->ps.viewangles[YAW] - bulletAngle[YAW]);// Use regional modifier.//TODO:Move G_GetPointDamageMod to ArmorComponent.damage *= GetLocationalDamageMod(hitRotation, hitRatio); } 开发者ID:BlueMustache,项目...
{// Get the estimated movement yaw.EstimateYaw();// Get the view yaw.floatflAngle =AngleNormalize( m_flEyeYaw );// Calc side to side turning - the view vs. movement yaw.floatflYaw = flAngle - m_PoseParameterData.m_flEstimateYaw; flYaw =AngleNormalize( -flYaw );// Get the curren...