CapsuleCollisionShape: warn about scaling only if its not identity

experimental
Kirill Vainer 10 years ago
parent c5c893fd11
commit f836b26f2e
  1. 2
      jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/CapsuleCollisionShape.java

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

Loading…
Cancel
Save