|
@@ -35,6 +35,7 @@ import com.jme3.export.InputCapsule;
|
|
import com.jme3.export.JmeExporter;
|
|
import com.jme3.export.JmeExporter;
|
|
import com.jme3.export.JmeImporter;
|
|
import com.jme3.export.JmeImporter;
|
|
import com.jme3.export.OutputCapsule;
|
|
import com.jme3.export.OutputCapsule;
|
|
|
|
+import com.jme3.math.Vector3f;
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
import java.util.logging.Logger;
|
|
@@ -76,6 +77,14 @@ public class SphereCollisionShape extends CollisionShape {
|
|
createShape();
|
|
createShape();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * WARNING - CompoundCollisionShape scaling has no effect.
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public void setScale(Vector3f scale) {
|
|
|
|
+ Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "SphereCollisionShape cannot be scaled");
|
|
|
|
+ }
|
|
|
|
+
|
|
protected void createShape() {
|
|
protected void createShape() {
|
|
objectId = createShape(radius);
|
|
objectId = createShape(radius);
|
|
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|
|
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId));
|