crossunique.cpp 1.28 KB
// gtest
#include <gtest/gtest.h> // googletest header file

// collib
#include <collision_library.h>
using namespace collision;

// gmlib
#include <gmParametricsModule>
using namespace GMlib;

//void
//collision::MyController::testMethod()
//{
//    auto sphere1 = _dynamic_spheres[0];
//    auto sphere2 = _dynamic_spheres[1];
//    auto sphere3 = _dynamic_spheres[2];
//    StaticPPlane* plane;

//    auto fake_sin1 = StateChangeObj(sphere1, fakePlanes, seconds_type(0.2), DynamicPSphere::States::NoChange);
//    auto fake_sin2 = StateChangeObj(sphere2, fakePlanes, seconds_type(0.4), DynamicPSphere::States::NoChange);
//    auto fake_sin3 = StateChangeObj(sphere3, fakePlanes, seconds_type(0.7), DynamicPSphere::States::NoChange);

//    auto fake_col1 = CollisionObject( sphere3, sphere2, seconds_type(0.3));
////        auto fake_col2 = CollisionObject( sphere2, sphere1, seconds_type(0.4));
////        auto fake_col3 = CollisionObject( sphere3, sphere2, seconds_type(0.5));

//    _singularities.push_back(fake_sin1);
//    _singularities.push_back(fake_sin2);
//    _singularities.push_back(fake_sin3);

//    _collisions.push_back( fake_col1 );
////        _collisions.push_back( fake_col2 );
////        _collisions.push_back( fake_col3 );

//    crossUnique(_collisions, _singularities);

//}