本文整理汇总了C++中TestScene::createSquareScene方法的典型用法代码示例。如果您正苦于以下问题:C++ TestScene::createSquareScene方法的具体用法?C++ TestScene::createSquareScene怎么用?C++ TestScene::createSquareScene使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestScene
的用法示例。
在下文中一共展示了TestScene::createSquareScene方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: warning
#ifdef _MSC_VER
#pragma warning(push, 0)
#include <catch.hpp>
#pragma warning(pop)
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wall"
#include <catch.hpp>
#pragma GCC diagnostic pop
#endif
TEST_CASE("DetourPipelineTest/Pipeline", "Tests about the pipeline behavior")
{
TestScene ts;
dtCrowd* crowd = ts.createSquareScene(20, 0.5);
REQUIRE(crowd != 0);
dtPipelineBehavior* pipeline = dtPipelineBehavior::allocate();
float posAgt1[] = {0, 0.2f, 0};
float destAgt1[] = {15, 0, 0};
dtCrowdAgent ag;
// Adding the agents to the crowd
REQUIRE(crowd->addAgent(ag, posAgt1));
ts.defaultInitializeAgent(*crowd, ag.id);
crowd->setAgentBehavior(ag.id, pipeline);