Merge pull request #599 from stephengold/v3.1
CapsuleCollisionShape: warn about scaling only if it's not identity
This commit is contained in:
commit
5d2c89f040
@ -86,7 +86,9 @@ public class CylinderCollisionShape extends CollisionShape {
|
||||
*/
|
||||
@Override
|
||||
public void setScale(Vector3f scale) {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "CylinderCollisionShape cannot be scaled");
|
||||
if (!scale.equals(Vector3f.UNIT_XYZ)) {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "CylinderCollisionShape cannot be scaled");
|
||||
}
|
||||
}
|
||||
|
||||
public void write(JmeExporter ex) throws IOException {
|
||||
|
@ -90,9 +90,11 @@ public class CylinderCollisionShape extends CollisionShape {
|
||||
*/
|
||||
@Override
|
||||
public void setScale(Vector3f scale) {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "CylinderCollisionShape cannot be scaled");
|
||||
if (!scale.equals(Vector3f.UNIT_XYZ)) {
|
||||
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "CylinderCollisionShape cannot be scaled");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void write(JmeExporter ex) throws IOException {
|
||||
super.write(ex);
|
||||
OutputCapsule capsule = ex.getCapsule(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user