pub fn add_primitives_from_level_definition(&mut self) {
        // TODO: Hack around borrowing issues, should learn the correct pattern for this
        let prims = self.level_definition.primitives.clone();
        for prim in prims {
            self.add_primitive_without_adding_to_level(&prim.name,&Vector3::from(prim.position), &Vector3::from(prim.rotation), prim.is_static);
        }
    }
// TODO: Should just do this in a constructor or such
Should just do this in a constructor or such
Should just do this in a constructor or such
pub fn add_primitives_from_level_definition(&mut self) {
        // TODO: Hack around borrowing issues, should learn the correct pattern for this
        let prims = self.level_definition.primitives.clone();
        for prim in prims {
            self.add_primitive_without_adding_to_level(&prim.name,&Vector3::from(prim.position), &Vector3::from(prim.rotation), prim.is_static);
        }
    }
pub fn add_primitives_from_level_definition ( & mut self ) { // TODO: Hack around borrowing issues, should learn the correct pattern for this let prims = self . level_definition . primitives . clone ( ) ; for prim in prims { self . add_primitive_without_adding_to_level ( & prim . name , & Vector3 :: from ( prim . position ) , & Vector3 :: from ( prim . rotation ) , prim . is_static ) ; } }
TODO: Should just do this in a constructor or such
TODO : Should just do this in a constructor or such
&mut self
&mut self