From 0c415f2f23b5351bdd8e3901ccc29073fe98d9f6 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Sun, 17 May 2020 09:14:00 +0200 Subject: [PATCH] get-absolute-transformation --- irrlicht.scm | 1 + irrlicht/scene.scm | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/irrlicht.scm b/irrlicht.scm index 8fa8ccd..e5c492d 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -43,6 +43,7 @@ create-rotation-animator drop! end-scene + get-absolute-transformation get-cursor-control get-file-system get-fps diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index e084ccc..425d01e 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -192,6 +192,10 @@ (let ((addAnimator (get-irrlicht-proc "addAnimator" node))) (addAnimator node animator))) +(define-method (get-absolute-transformation (node )) + (let ((getAbsoluteTransformation (get-irrlicht-proc "getAbsoluteTransformation" node))) + (getAbsoluteTransformation node))) + (define-method (set-material-flag! (node ) flag new-value) ((get-irrlicht-proc "setMaterialFlag" node) node @@ -208,7 +212,8 @@ (let ((setPosition (get-irrlicht-proc "setPosition" node))) (setPosition node new-pos))) -(export add-animator! set-material-flag! set-material-texture! set-position!) +(export add-animator! get-absolute-transformation set-material-flag! + set-material-texture! set-position!) ;; IAnimatedMeshSceneNode -- 2.39.5