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

Method AddHook

src/PhysicsBodyComponent.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void RavEngine::PhysicsBodyComponent::AddHook(const WeakRef<RavEngine::Entity>& e)
22{
23 setPos(e.get()->transform()->GetWorldPosition());
24 setRot(e.get()->transform()->GetWorldRotation());
25}
26
27void RavEngine::PhysicsBodyComponent::AddReceiver(IPhysicsActor* obj)
28{

Callers

nothing calls this directly

Calls 4

GetWorldPositionMethod · 0.80
GetWorldRotationMethod · 0.80
transformMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected