]> git.jsancho.org Git - guile-irrlicht.git/commitdiff
get-absolute-transformation
authorJavier Sancho <jsf@jsancho.org>
Sun, 17 May 2020 07:14:00 +0000 (09:14 +0200)
committerJavier Sancho <jsf@jsancho.org>
Sun, 17 May 2020 07:14:00 +0000 (09:14 +0200)
irrlicht.scm
irrlicht/scene.scm

index 8fa8ccd8d7934dd591dff2c9b927f0ded891ba0c..e5c492d84b4890a5d422767e10cac23b7b2b939a 100644 (file)
@@ -43,6 +43,7 @@
                create-rotation-animator
                drop!
                end-scene
+               get-absolute-transformation
                get-cursor-control
                get-file-system
                get-fps
index e084cccba4a0ba803c866249ccc1a3883d905aca..425d01ec026bd8c08fa666beb6d764518deab0f8 100644 (file)
   (let ((addAnimator (get-irrlicht-proc "addAnimator" node)))
     (addAnimator node animator)))
 
+(define-method (get-absolute-transformation (node <scene-node>))
+  (let ((getAbsoluteTransformation (get-irrlicht-proc "getAbsoluteTransformation" node)))
+    (getAbsoluteTransformation node)))
+
 (define-method (set-material-flag! (node <scene-node>) flag new-value)
   ((get-irrlicht-proc "setMaterialFlag" node)
    node
   (let ((setPosition (get-irrlicht-proc "setPosition" node)))
     (setPosition node new-pos)))
 
-(export <scene-node> add-animator! set-material-flag! set-material-texture! set-position!)
+(export <scene-node> add-animator! get-absolute-transformation set-material-flag!
+        set-material-texture! set-position!)
 
 
 ;; IAnimatedMeshSceneNode