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

Method WorldToModelPos

Source/Objects/itemobject.cpp:865–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865vec3 ItemObject::WorldToModelPos(const vec3& pos) {
866 return invert(bullet_object_->GetTransform()) * pos + display_phys_offset_;
867}
868
869vec3 ItemObject::ModelToWorldPos(const vec3& pos) {
870 return bullet_object_->GetTransform() * (pos - display_phys_offset_);

Callers

nothing calls this directly

Calls 2

invertFunction · 0.50
GetTransformMethod · 0.45

Tested by

no test coverage detected