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

Method GetPhysicsTransformIncludeOffset

Source/Objects/itemobject.cpp:964–968  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964mat4 ItemObject::GetPhysicsTransformIncludeOffset() {
965 mat4 transform = bullet_object_->GetTransform();
966 transform.AddTranslation(transform.GetRotatedvec3(phys_offset_) * -1.0f);
967 return transform;
968}
969
970void ItemObject::GetPhysicsVel(vec3& linear_vel, vec3& angular_vel) {
971 linear_vel = bullet_object_->GetLinearVelocity();

Callers

nothing calls this directly

Calls 3

AddTranslationMethod · 0.80
GetRotatedvec3Method · 0.80
GetTransformMethod · 0.45

Tested by

no test coverage detected