pub(crate) fn default(scene: Arc<RwLock<Scene>>) -> Arc<RwLock<Self>> {
        let node = Arc::new(RwLock::new(Node {
            self_ref: Weak::new(),
            scene: Arc::downgrade(&scene),
            pos: vec3(0.0, 0.0, 0.0),
            rot: Quaternion::new(1.0, 0.0, 0.0, 0.0),
            scl: vec3(1.0, 1.0, 1.0),
            xform: Matrix4::one(),

            components: Vec::new(),

            renderable: None
        }));
        node.write().unwrap().self_ref = Arc::downgrade(&node);
        return node;
    }
/// This is an internal function. Do not call this yourself!
/// Alternative: `Scene::new_node`.
/// 
/// Creates a new node with default settings and no instances or renderable.
/// Does not implement `Default`: we want to encapsulate every node in an `Arc<RwLock<>>`.
This is an internal function. Do not call this yourself.

Creates a new node with default settings and no instances or renderable.
Does not implement `Default`: we want to encapsulate every node in an `Arc>`.
This is an internal function . Do not call this yourself . Creates a new node with default settings and no instances or renderable . Does not implement ` Default ` : we want to encapsulate every node in an ` Arc > ` .
pub(crate) fn default(scene: Arc<RwLock<Scene>>) -> Arc<RwLock<Self>> {
        let node = Arc::new(RwLock::new(Node {
            self_ref: Weak::new(),
            scene: Arc::downgrade(&scene),
            pos: vec3(0.0, 0.0, 0.0),
            rot: Quaternion::new(1.0, 0.0, 0.0, 0.0),
            scl: vec3(1.0, 1.0, 1.0),
            xform: Matrix4::one(),
            components: Vec::new(),
            renderable: None
        }));
        node.write().unwrap().self_ref = Arc::downgrade(&node);
        return node;
    }
pub ( crate ) fn default ( scene : Arc < RwLock < Scene > > ) -> Arc < RwLock < Self > > { let node = Arc :: new ( RwLock :: new ( Node { self_ref : Weak :: new ( ) , scene : Arc :: downgrade ( & scene ) , pos : vec3 ( 0.0 , 0.0 , 0.0 ) , rot : Quaternion :: new ( 1.0 , 0.0 , 0.0 , 0.0 ) , scl : vec3 ( 1.0 , 1.0 , 1.0 ) , xform : Matrix4 :: one ( ) , components : Vec :: new ( ) , renderable : None } ) ) ; node . write ( ) . unwrap ( ) . self_ref = Arc :: downgrade ( & node ) ; return node ; }
This is an internal function.
This is an internal function .
scene
Arc<RwLock<Scene>>
scene
Arc<RwLock<Scene>>