mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed physics only simulation
+ Don't run scripts in physics only mode + Don't initialize scritps in physics only mode + Don't setup physics callbacks in physics only mode
This commit is contained in:
@@ -734,7 +734,7 @@ namespace GlitchyEditor
|
||||
|
||||
using (Scene runtimeScene = new Scene())
|
||||
{
|
||||
_editorScene.CopyTo(runtimeScene);
|
||||
_editorScene.CopyTo(runtimeScene, true);
|
||||
|
||||
runtimeScene.OnRuntimeStart();
|
||||
|
||||
@@ -755,7 +755,7 @@ namespace GlitchyEditor
|
||||
|
||||
using (Scene simulationScene = new Scene())
|
||||
{
|
||||
_editorScene.CopyTo(simulationScene);
|
||||
_editorScene.CopyTo(simulationScene, false);
|
||||
|
||||
simulationScene.OnSimulationStart();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user