<commit_before>#include "simplegameworld.h"

void SimpleGameWorld::addEntity(shared_ptr< gamefw::Entity > entity)
{
    m_entity_list.push_back(entity);
}

void SimpleGameWorld::update()
{
    foreach(shared_ptr<gamefw::Entity> entity, m_entity_list) {
            entity->m_position.x += entity->m_velocity_local.x *
                            glm::cos(glm::radians(entity->m_orientation.x)) +
                            -entity->m_velocity_local.z *
                            glm::sin(glm::radians(entity->m_orientation.x));
            entity->m_position.z += entity->m_velocity_local.x *
                            glm::sin(glm::radians(entity->m_orientation.x)) +
                            entity->m_velocity_local.z *
                            glm::cos(glm::radians(entity->m_orientation.x));
            entity->m_position.y += entity->m_velocity_local.y;
    }
}

<commit_msg>Add orientation update in SimpleGameWorld::Update.<commit_after>#include "simplegameworld.h"

void SimpleGameWorld::addEntity(shared_ptr< gamefw::Entity > entity)
{
    m_entity_list.push_back(entity);
}

void SimpleGameWorld::update()
{
    foreach(shared_ptr<gamefw::Entity> entity, m_entity_list) {
            entity->m_position.x += entity->m_velocity_local.x *
                            glm::cos(glm::radians(entity->m_orientation.x)) +
                            -entity->m_velocity_local.z *
                            glm::sin(glm::radians(entity->m_orientation.x));
            entity->m_position.z += entity->m_velocity_local.x *
                            glm::sin(glm::radians(entity->m_orientation.x)) +
                            entity->m_velocity_local.z *
                            glm::cos(glm::radians(entity->m_orientation.x));
            entity->m_position.y += entity->m_velocity_local.y;
	    
	    entity->m_orientation += entity->m_angular_velocity;
    }
}


{'fraction_non_alphanumeric': 0.13248542660307366, 'fraction_numerical': 0.0, 'mean_word_length': 2.1784511784511786, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5000787', 'n_tokens_mistral': 595, 'n_tokens_neox': 571, 'n_words': 54}