From 03ffc2244651598413de582c5bd9bc21437790fb Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Thu, 22 Sep 2011 00:55:59 +0000 Subject: [PATCH] * Spatial.setLocal***() methods no longer set world transform since it will be updated later on git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8269 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/Spatial.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/engine/src/core/com/jme3/scene/Spatial.java b/engine/src/core/com/jme3/scene/Spatial.java index 7cf76fc1b..ce59cfdd9 100644 --- a/engine/src/core/com/jme3/scene/Spatial.java +++ b/engine/src/core/com/jme3/scene/Spatial.java @@ -791,7 +791,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalRotation(Matrix3f rotation) { localTransform.getRotation().fromRotationMatrix(rotation); - this.worldTransform.setRotation(this.localTransform.getRotation()); setTransformRefresh(); } @@ -803,7 +802,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalRotation(Quaternion quaternion) { localTransform.setRotation(quaternion); - this.worldTransform.setRotation(this.localTransform.getRotation()); setTransformRefresh(); } @@ -824,7 +822,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalScale(float localScale) { localTransform.setScale(localScale); - worldTransform.setScale(localTransform.getScale()); setTransformRefresh(); } @@ -833,7 +830,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalScale(float x, float y, float z) { localTransform.setScale(x, y, z); - worldTransform.setScale(localTransform.getScale()); setTransformRefresh(); } @@ -845,7 +841,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalScale(Vector3f localScale) { localTransform.setScale(localScale); - worldTransform.setScale(localTransform.getScale()); setTransformRefresh(); } @@ -868,7 +863,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalTranslation(Vector3f localTranslation) { this.localTransform.setTranslation(localTranslation); - this.worldTransform.setTranslation(this.localTransform.getTranslation()); setTransformRefresh(); } @@ -878,7 +872,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public void setLocalTranslation(float x, float y, float z) { this.localTransform.setTranslation(x, y, z); - this.worldTransform.setTranslation(this.localTransform.getTranslation()); setTransformRefresh(); } @@ -939,7 +932,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public Spatial move(float x, float y, float z) { this.localTransform.getTranslation().addLocal(x, y, z); - this.worldTransform.setTranslation(this.localTransform.getTranslation()); setTransformRefresh(); return this; @@ -952,7 +944,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public Spatial move(Vector3f offset) { this.localTransform.getTranslation().addLocal(offset); - this.worldTransform.setTranslation(this.localTransform.getTranslation()); setTransformRefresh(); return this; @@ -974,7 +965,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public Spatial scale(float x, float y, float z) { this.localTransform.getScale().multLocal(x, y, z); - this.worldTransform.setScale(this.localTransform.getScale()); setTransformRefresh(); return this; @@ -987,7 +977,6 @@ public abstract class Spatial implements Savable, Cloneable, Collidable, Asset { */ public Spatial rotate(Quaternion rot) { this.localTransform.getRotation().multLocal(rot); - this.worldTransform.setRotation(this.localTransform.getRotation()); setTransformRefresh(); return this;