MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / transform

Method transform

src/ScriptComponent.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24Ref<Transform> RavEngine::ScriptComponent::transform()
25{
26 auto owner = getOwner();
27 if (owner.isNull()) {
28 throw std::runtime_error("Cannot get transform from Script with no attached Entity");
29 }
30 return Ref<Entity>(owner)->transform();
31}
32
33Ref<RavEngine::World> RavEngine::ScriptComponent::GetWorld()
34{

Callers

nothing calls this directly

Calls 2

getOwnerFunction · 0.85
isNullMethod · 0.45

Tested by

no test coverage detected