I'm wondering if it's possible to add objects in real time during runtime. #2719
Unanswered
mg638
asked this question in
Asking for Help
Replies: 2 comments 4 replies
-
You can modify the mjSpec and call spec.recompile() to get new mjModel and mjData, where mjData will contain the state mapped from the current state. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello! You can add new objects in the Unity scene even during runtime, but it will cause a scene recompile which is a moderately expensive operation. If you don't do it every frame in most cases it would not be noticeable, especially if you are not running much faster than real time (i.e. not setting timescale of Unity to a high value) |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am a researche. I use MuJoCo for my research on
My setup
Mujoco : 3.3.0
API : Python, Unity
OS : Linux, Windows
My question
I'm wondering if it's possible to create objects and add them to the path while the mujoco simulation is running, or if I have to add them when I initially load the model for it to be usable.
Beta Was this translation helpful? Give feedback.
All reactions