From 409f5ab766162d98821287b0dbe6c5b3aa5c554c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20B=C3=B6rnert?= Date: Sat, 28 Feb 2015 10:53:26 +0100 Subject: [PATCH 1/2] A very small change that creates two getters in VehicleWheel,, these are necessary if jme's bullet wrapper is used in a non Scenegraph enviroment, for example a ES based server. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kai Börnert --- .../com/jme3/bullet/objects/VehicleWheel.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/jme3-bullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java b/jme3-bullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java index 99f132ff1..1e86cc256 100644 --- a/jme3-bullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java +++ b/jme3-bullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java @@ -420,4 +420,22 @@ public class VehicleWheel implements Savable { this.applyLocal = applyLocal; } + /** + * write the content of the wheelWorldRotation into the store + * + * @param store + */ + public void getWheelWorldRotation(final Quaternion store) { + store.set(this.wheelWorldRotation); + } + + /** + * write the content of the wheelWorldLocation into the store + * + * @param store + */ + public void getWheelWorldLocation(final Vector3f store) { + store.set(this.wheelWorldLocation); + } + } From d40de2629dbeb56ec61dbb798282b1a44b759f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20B=C3=B6rnert?= Date: Sun, 1 Mar 2015 07:05:44 +0100 Subject: [PATCH 2/2] made change also for jbullet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kai Börnert --- .../com/jme3/bullet/objects/VehicleWheel.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java index 0ddbbb852..efcb79ec7 100644 --- a/jme3-jbullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java +++ b/jme3-jbullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java @@ -399,4 +399,23 @@ public class VehicleWheel implements Savable { public void setApplyLocal(boolean applyLocal) { this.applyLocal = applyLocal; } + + /** + * write the content of the wheelWorldRotation into the store + * + * @param store + */ + public void getWheelWorldRotation(final Quaternion store) { + store.set(this.wheelWorldRotation); + } + + /** + * write the content of the wheelWorldLocation into the store + * + * @param store + */ + public void getWheelWorldLocation(final Vector3f store) { + store.set(this.wheelWorldLocation); + } + }