CapsuleCollisionShape: warn about scaling only if its not identity

This commit is contained in:
Kirill Vainer 2015-08-21 20:37:04 -04:00
parent c5c893fd11
commit f836b26f2e

View File

@ -93,8 +93,10 @@ public class CapsuleCollisionShape extends CollisionShape{
*/ */
@Override @Override
public void setScale(Vector3f scale) { public void setScale(Vector3f scale) {
if (!scale.equals(Vector3f.UNIT_XYZ)) {
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "CapsuleCollisionShape cannot be scaled"); Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "CapsuleCollisionShape cannot be scaled");
} }
}
public void write(JmeExporter ex) throws IOException { public void write(JmeExporter ex) throws IOException {
super.write(ex); super.write(ex);