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

Method ModelToWorldPos

Source/Objects/itemobject.cpp:869–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869vec3 ItemObject::ModelToWorldPos(const vec3& pos) {
870 return bullet_object_->GetTransform() * (pos - display_phys_offset_);
871}
872
873int ItemObject::GetClosestVert(const vec3& pos) {
874 const Model& model = Models::Instance()->GetModel(model_id_);

Callers

nothing calls this directly

Calls 1

GetTransformMethod · 0.45

Tested by

no test coverage detected