MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / UpdatePhysicsTransform

Method UpdatePhysicsTransform

Source/Objects/envobject.cpp:1400–1410  ·  view source on GitHub ↗

returns true iff an update occured

Source from the content-addressed store, hash-verified

1398
1399// returns true iff an update occured
1400bool 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
1412void EnvObject::GetDisplayName(char* buf, int buf_size) {
1413 if (GetName().empty()) {

Callers 5

ExecuteMethod · 0.80
ASSetTranslationFunction · 0.80
ASSetScaleFunction · 0.80
ASSetRotationFunction · 0.80

Calls 7

GetTranslationFunction · 0.85
Mat4FromQuaternionFunction · 0.85
GetRotationFunction · 0.85
GetScaleFunction · 0.85
UpdateSingleAABBMethod · 0.80
SetTransformMethod · 0.45
UpdateTransformMethod · 0.45

Tested by

no test coverage detected