|
|
|
@ -82,8 +82,10 @@ public class SphereCollisionShape extends CollisionShape { |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public void setScale(Vector3f scale) { |
|
|
|
|
if (!scale.equals(Vector3f.UNIT_XYZ)) { |
|
|
|
|
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "SphereCollisionShape cannot be scaled"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void createShape() { |
|
|
|
|
objectId = createShape(radius); |
|
|
|
@ -91,7 +93,7 @@ public class SphereCollisionShape extends CollisionShape { |
|
|
|
|
// new SphereShape(radius);
|
|
|
|
|
// objectId.setLocalScaling(Converter.convert(getScale()));
|
|
|
|
|
// objectId.setMargin(margin);
|
|
|
|
|
setScale(scale); |
|
|
|
|
setScale(scale); // Set the scale to 1
|
|
|
|
|
setMargin(margin); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|