/// <summary> /// Completes static geometry build process. /// Submits static geometry to physics scene. /// </summary> private void Seal(Scene scene) { // Seal static geometry staticGeometry.ApplyBuilder(); staticGeometry.Seal(); // Create static geometry for physics engine physicsMesh = new StaticMesh( staticGeometry.PhysicsVertices, staticGeometry.PhysicsIndices, new AffineTransform(this.matrix.Translation)); // Add static mesh to physics space if (scene != null) { scene.Space.Add(physicsMesh); } }
/// <summary> /// Seal billboard static geometry so it can be rendered. /// Only do this once all static billboards have been added. /// </summary> public void Seal() { // Seal static geometry staticGeometry.ApplyBuilder(); staticGeometry.Seal(); }