]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
set-rotation!
authorJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 06:47:05 +0000 (08:47 +0200)
committerJavier Sancho <jsf@jsancho.org>
Fri, 22 May 2020 06:47:05 +0000 (08:47 +0200)
irrlicht.scm
irrlicht/scene.scm

index e566f66d4ec666c545732ae0056ba92ec4e81a40..1c34cc6059979c62db412bb8a97d6bf2702fdece 100644 (file)
                set-material-texture!
                set-md2-animation!
                set-position!
+               set-rotation!
                set-scale!
                set-transform!
                set-visible!
index bfff47ded7245a62cc960c80a713d6bf452a30a7..910ad536859a9a106c8266e771a28ab98de84d92 100644 (file)
   (let ((setPosition (get-irrlicht-proc "setPosition" node)))
     (setPosition node new-pos)))
 
+(define-method (set-rotation! (node <scene-node>) rotation)
+  (let ((setRotation (get-irrlicht-proc "setRotation" node)))
+    (setRotation node rotation)))
+
 (define-method (set-scale! (node <scene-node>) scale)
   (let ((setScale (get-irrlicht-proc "setScale" node)))
     (setScale node scale)))
 
 (export <scene-node> add-animator! get-absolute-transformation set-material-flag!
-        set-material-texture! set-position! set-scale!)
+        set-material-texture! set-position! set-rotation! set-scale!)
 
 
 ;; IAnimatedMeshSceneNode