//MultiSphereShape public IMultiSphereShapeImp AddMultiSphereShape(float3[] positions, float[] radi) { var btPositions = new Vector3[positions.Length]; for (int i = 0; i < positions.Length; i++) { btPositions[i] = new Vector3(positions[i].x, positions[i].y, positions[i].z); } var btMultiSphereShape = new MultiSphereShape(btPositions, radi); BtCollisionShapes.Add(btMultiSphereShape); var retval = new MultiSphereShapeImp(); retval.BtMultiSphereShape = btMultiSphereShape; btMultiSphereShape.UserObject = retval; return(retval); }
//MultiSphereShape public IMultiSphereShapeImp AddMultiSphereShape(float3[] positions, float[] radi) { var btPositions = new Vector3[positions.Length]; for (int i = 0; i < positions.Length; i++) { btPositions[i] = new Vector3(positions[i].x, positions[i].y, positions[i].z); } var btMultiSphereShape = new MultiSphereShape(btPositions, radi); BtCollisionShapes.Add(btMultiSphereShape); var retval = new MultiSphereShapeImp(); retval.BtMultiSphereShape = btMultiSphereShape; btMultiSphereShape.UserObject = retval; return retval; }