]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-position!
authorJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 05:44:10 +0000 (07:44 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 15 May 2020 05:44:10 +0000 (07:44 +0200)
irrlicht.scm
irrlicht/foreign.scm
irrlicht/scene.scm

index 65085372eee5cdc300a2bac66e270ffac9336886..b347841375404ba3aa25c7276b31dc386172fc2a 100644 (file)
@@ -49,6 +49,7 @@
                set-material-flag!
                set-material-texture!
                set-md2-animation!
+               set-position!
                set-window-caption!))
 
 ;; Merged methods have to be exported apart
index aaac04ff08bf812382dbf8c407780f73c90fd503..f6e203622f55db18eae8907fce38f3c26533c4dd 100644 (file)
@@ -28,8 +28,6 @@
 (define remote-proc-table (make-hash-table))
 
 (define (get-irrlicht-proc proc-name . objects)
-  (format #t "Objects: ~a ~a~%" objects irr-class)
-  (format #t "Classes: ~a~%" (map irr-class objects))
   (let* ((name (if (null? objects)
                    proc-name
                    (let ((classes (map irr-class objects)))
index 6a6486fe8565f8bf5ecdce34723df012112211a3..0d0618f8152d8088a19148af807c9792f266a623 100644 (file)
    texture-layer
    texture))
 
-(export <scene-node> set-material-flag! set-material-texture!)
+(define-method (set-position! (node <scene-node>) new-pos)
+  (let ((setPosition (get-irrlicht-proc "setPosition" node)))
+    (setPosition node new-pos)))
+
+(export <scene-node> set-material-flag! set-material-texture! set-position!)
 
 
 ;; IAnimatedMeshSceneNode