|
|
@ -125,9 +125,14 @@ public class GImpactCollisionShape extends CollisionShape{ |
|
|
|
TriangleIndexVertexArray tiv = new TriangleIndexVertexArray(numTriangles, triangleIndexBase, triangleIndexStride, numVertices, vertexBase, vertexStride); |
|
|
|
TriangleIndexVertexArray tiv = new TriangleIndexVertexArray(numTriangles, triangleIndexBase, triangleIndexStride, numVertices, vertexBase, vertexStride); |
|
|
|
cShape = new GImpactMeshShape(tiv); |
|
|
|
cShape = new GImpactMeshShape(tiv); |
|
|
|
cShape.setLocalScaling(Converter.convert(worldScale)); |
|
|
|
cShape.setLocalScaling(Converter.convert(worldScale)); |
|
|
|
((GImpactMeshShape)cShape).updateBound(); |
|
|
|
|
|
|
|
cShape.setLocalScaling(Converter.convert(getScale())); |
|
|
|
cShape.setLocalScaling(Converter.convert(getScale())); |
|
|
|
cShape.setMargin(margin); |
|
|
|
cShape.setMargin(margin); |
|
|
|
|
|
|
|
((GImpactMeshShape) cShape).updateBound(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void setScale(Vector3f scale) { |
|
|
|
|
|
|
|
super.setScale(scale); |
|
|
|
|
|
|
|
((GImpactMeshShape) cShape).updateBound(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|