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

Method set_physics_process

scene/main/node.cpp:610–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608void Node::_physics_interpolated_changed() {}
609
610void Node::set_physics_process(bool p_process) {
611 ERR_THREAD_GUARD
612 if (data.physics_process == p_process) {
613 return;
614 }
615
616 if (!is_inside_tree()) {
617 data.physics_process = p_process;
618 return;
619 }
620
621 if (_is_any_processing()) {
622 _remove_from_process_thread_group();
623 }
624
625 data.physics_process = p_process;
626
627 if (_is_any_processing()) {
628 _add_to_process_thread_group();
629 }
630}
631
632bool Node::is_physics_processing() const {
633 return data.physics_process;

Callers 3

make_visibleMethod · 0.80
test_node.hFile · 0.80
test_timer.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected