Pausing OIP simulation #251
ali-haj-lb
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
Using get_tree().paused = true in @tool script bricks all of OIP.
Must use @tool for script to run in editor execution mode (as opposed to runtime mode, which isn't available in OIP afaik)
Solution:
Use EditorInterface.toggle_pause_simulation() instead.
Use case:
my current PLC bricks. I need the physics engine to stop whenever that happens. I'm using a heartbeat integer from my PLC to OIP, and when heartbeat stops, physics pauses.
Beta Was this translation helpful? Give feedback.
All reactions