MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / moveToTarget

Method moveToTarget

engine/src/camera.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void Camera::moveToTarget()
61{
62 position = pTarget->position + pTarget->size * 0.5f - size * 0.5f;
63}
64
65void Camera::update(WorldRect* pconstraints)
66{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected