returns true iff an update occured
| 1398 | |
| 1399 | // returns true iff an update occured |
| 1400 | bool EnvObject::UpdatePhysicsTransform() { |
| 1401 | if (!bullet_object_) { |
| 1402 | return false; |
| 1403 | } |
| 1404 | |
| 1405 | bullet_object_->SetTransform(GetTranslation(), Mat4FromQuaternion(GetRotation()), GetScale()); |
| 1406 | bullet_object_->UpdateTransform(); |
| 1407 | bullet_object_->UpdateTransform(); |
| 1408 | GetBulletWorld()->UpdateSingleAABB(bullet_object_); |
| 1409 | return true; |
| 1410 | } |
| 1411 | |
| 1412 | void EnvObject::GetDisplayName(char* buf, int buf_size) { |
| 1413 | if (GetName().empty()) { |
no test coverage detected