From b66897512cbe56969f0a9b2d4043fc8764c35e19 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Fri, 15 May 2020 07:44:10 +0200 Subject: [PATCH] set-position! --- irrlicht.scm | 1 + irrlicht/foreign.scm | 2 -- irrlicht/scene.scm | 6 +++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/irrlicht.scm b/irrlicht.scm index 6508537..b347841 100644 --- a/irrlicht.scm +++ b/irrlicht.scm @@ -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 diff --git a/irrlicht/foreign.scm b/irrlicht/foreign.scm index aaac04f..f6e2036 100644 --- a/irrlicht/foreign.scm +++ b/irrlicht/foreign.scm @@ -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))) diff --git a/irrlicht/scene.scm b/irrlicht/scene.scm index 6a6486f..0d0618f 100644 --- a/irrlicht/scene.scm +++ b/irrlicht/scene.scm @@ -144,7 +144,11 @@ texture-layer texture)) -(export set-material-flag! set-material-texture!) +(define-method (set-position! (node ) new-pos) + (let ((setPosition (get-irrlicht-proc "setPosition" node))) + (setPosition node new-pos))) + +(export set-material-flag! set-material-texture! set-position!) ;; IAnimatedMeshSceneNode -- 2.39.5