Reverted Changes and fixed it the way it was done in CapsuleCollissionShape (See Commit f836b26)
"SphereCollisionShape: warn about scaling only if its not identity"
This commit is contained in:
parent
5064552905
commit
e776967c23
@ -82,7 +82,9 @@ public class SphereCollisionShape extends CollisionShape {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setScale(Vector3f scale) {
|
public void setScale(Vector3f scale) {
|
||||||
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "SphereCollisionShape cannot be scaled");
|
if (!scale.equals(Vector3f.UNIT_XYZ)) {
|
||||||
|
Logger.getLogger(this.getClass().getName()).log(Level.WARNING, "SphereCollisionShape cannot be scaled");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void createShape() {
|
protected void createShape() {
|
||||||
@ -91,7 +93,7 @@ public class SphereCollisionShape extends CollisionShape {
|
|||||||
// new SphereShape(radius);
|
// new SphereShape(radius);
|
||||||
// objectId.setLocalScaling(Converter.convert(getScale()));
|
// objectId.setLocalScaling(Converter.convert(getScale()));
|
||||||
// objectId.setMargin(margin);
|
// objectId.setMargin(margin);
|
||||||
super.setScale(scale); // Set the scale to 1
|
setScale(scale); // Set the scale to 1
|
||||||
setMargin(margin);
|
setMargin(margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user