I have a weird problem.. it seems my constructor i...
# getting-started
e
I have a weird problem.. it seems my constructor is not really being executed..
Copy code
class MultiSphereShape : ConvexInternalAabbCachingShape {
    var localPositionArray: Array<Vec3>
    var radiArray: FloatArray
    constructor(position: Vec3, radi: Float, numSpheres: Int) {
        localPositionArray = arrayOf(position)
        radiArray = floatArrayOf(radi)
    }
    init {
        shapeType = BNT.MULTI_SPHERE_SHAPE_PROXYTYPE
        recalcLocalAabb()
    }
I put a breakpoint on
localPositionArray = arrayOf(position)
, it gets hit but then f8 skips directly to the
init
and
localPositionArray
remains null..