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

Method Tick

RavEngine_Test/SkateSystem.h:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 virtual ~Skate(){}
18
19 virtual void Tick(float fpsScale, Ref<RavEngine::Entity> e) const override{
20 auto newPos = e->transform()->GetLocalPosition();
21 newPos += 5 * fpsScale;
22 e->transform()->SetLocalPosition(newPos);
23 }
24
25 std::list<std::type_index> QueryTypes() const override {
26 return { typeid(RavEngine::Transform) };

Callers

nothing calls this directly

Calls 3

GetLocalPositionMethod · 0.80
SetLocalPositionMethod · 0.80
transformMethod · 0.45

Tested by

no test coverage detected