MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / setPosition

Method setPosition

src/Physics/Car.cpp:238–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void 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
246Car::~Car() {
247 left_front_wheel_model.destroy();

Callers

nothing calls this directly

Calls 1

glmToBulletFunction · 0.85

Tested by

no test coverage detected