diff --git a/sample/TorqueApply/appl/Windows.cpp b/sample/TorqueApply/appl/Windows.cpp index 689fcf1..5a12e90 100644 --- a/sample/TorqueApply/appl/Windows.cpp +++ b/sample/TorqueApply/appl/Windows.cpp @@ -71,7 +71,7 @@ static ememory::SharedPtr createViewBoxStar() { // TODO : Assert When a dynamic object is sponed inside a static object -// loke: +// like: // o-------o // | | // o--------| X |--------o @@ -146,7 +146,7 @@ void appl::Windows::init() { m_env->addEntity(entity); } - // create cubes (surface) + // create cubes (surface) (the colision is bigger than the display) myMesh = ege::resource::Mesh::createCube(vec3(50,50,10), "basics", etk::color::green); if (myMesh != nullptr) { ememory::SharedPtr entity = ememory::makeShared(m_env); @@ -184,8 +184,8 @@ void appl::Windows::init() { ememory::SharedPtr physic = ememory::makeShared(); physic->setSize(vec3(5.01,5.01,5.01)); physic->setMass(300000); - componentPhysics->setType(ege::physics::Component::type::bodyDynamic); componentPhysics->addShape(physic); + componentPhysics->setType(ege::physics::Component::type::bodyDynamic); componentPhysics->generate(); entity->addComponent(componentPhysics); // add it ..