From 96b8093e0b14cc905ef2086e37f3d1ea6e8bfae5 Mon Sep 17 00:00:00 2001 From: Edward Jin <57547638+EddieJ03@users.noreply.github.com> Date: Thu, 6 Jun 2024 17:27:16 -0700 Subject: [PATCH] python in --- src/client/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/client.cpp b/src/client/client.cpp index 3d13b162..9aaefe5b 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -225,7 +225,6 @@ bool Client::init() { auto python_model_path = entity_models_dir / "flying-python.obj"; this->python_model = std::make_unique(python_model_path.string(), true); - this->python_model->rotateAbsolute(M_PI / -2.0f, glm::vec3(0.0f,0.5f,1.0f)); auto item_model_path = item_models_dir / "item.obj"; this->item_model = std::make_unique(item_model_path.string(), true); @@ -920,6 +919,8 @@ void Client::geometryPass() { case ObjectType::Python: { this->python_model->setDimensions(sharedObject->physics.dimensions); this->python_model->translateAbsolute(sharedObject->physics.getCenterPosition()); + this->python_model->rotateAbsolute(sharedObject->physics.facing); + this->python_model->draw(this->deferred_geometry_shader.get(), this->cam->getPos(), true);