MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / translate

Method translate

scene/2d/node_2d.cpp:262–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void Node2D::translate(const Vector2 &p_amount) {
263 ERR_THREAD_GUARD;
264 set_position(get_position() + p_amount);
265}
266
267void Node2D::global_translate(const Vector2 &p_amount) {
268 ERR_THREAD_GUARD;

Callers 4

to_escaped_cstringFunction · 0.45
main.cppFile · 0.45
_instance_startingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected