| 236 | } |
| 237 | |
| 238 | void Car::setPosition(glm::vec3 position, glm::quat orientation){ |
| 239 | btTransform initialTransform; |
| 240 | initialTransform.setOrigin(Utils::glmToBullet(position)); |
| 241 | initialTransform.setRotation(Utils::glmToBullet(orientation)); |
| 242 | m_carChassis->setWorldTransform(initialTransform); |
| 243 | update(); |
| 244 | } |
| 245 | |
| 246 | Car::~Car() { |
| 247 | left_front_wheel_model.destroy(); |
nothing calls this directly
no test coverage detected