|
|
|
@ -35,6 +35,7 @@ import com.jme3.export.InputCapsule; |
|
|
|
|
import com.jme3.export.JmeExporter; |
|
|
|
|
import com.jme3.export.JmeImporter; |
|
|
|
|
import com.jme3.export.OutputCapsule; |
|
|
|
|
import com.jme3.math.Vector3f; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.util.logging.Level; |
|
|
|
|
import java.util.logging.Logger; |
|
|
|
@ -76,6 +77,14 @@ public class SphereCollisionShape extends CollisionShape { |
|
|
|
|
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() { |
|
|
|
|
objectId = createShape(radius); |
|
|
|
|
Logger.getLogger(this.getClass().getName()).log(Level.FINE, "Created Shape {0}", Long.toHexString(objectId)); |
|
|
|
|