Exemplo n.º 1
0
        public SceneGraph(BaseScene sceneOwner)
        {
            SceneOwner = sceneOwner;
            Actors     = new List <BaseActor>();

            bufferPool        = new BepuUtilities.Memory.BufferPool();
            physicsSimulation = BepuPhysics.Simulation.Create(bufferPool, new SceneCallbacks());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Performs any required initialization logic after the Simulation instance has been constructed.
 /// </summary>
 /// <param name="simulation">Simulation that owns these callbacks.</param>
 public void Initialize(BepuPhysics.Simulation simulation)
 {
     //Often, the callbacks type is created before the simulation instance is fully constructed, so the simulation will call this function when it's ready.
     //Any logic which depends on the simulation existing can be put here.
 }