operator [] method
Implementation
operator [](CollisionType type){
if(type == CollisionType.sphereSphere) {
return sphereSphere;
}
else if(type == CollisionType.spherePlane) {
return spherePlane;
}
else if(type == CollisionType.boxBox) {
return boxBox;
}
else if(type == CollisionType.sphereBox) {
return sphereBox;
}
else if(type == CollisionType.planeBox) {
return planeBox;
}
else if(type == CollisionType.convexConvex) {
return convexConvex;
}
else if(type == CollisionType.sphereConvex) {
return sphereConvex;
}
else if(type == CollisionType.planeConvex) {
return planeConvex;
}
else if(type == CollisionType.boxConvex) {
return boxConvex;
}
else if(type == CollisionType.sphereHeightfield) {
return sphereHeightfield;
}
else if(type == CollisionType.boxHeightfield) {
return boxHeightfield;
}
else if(type == CollisionType.convexHeightfield) {
return convexHeightfield;
}
else if(type == CollisionType.sphereParticle) {
return sphereParticle;
}
else if(type == CollisionType.planeParticle) {
return planeParticle;
}
else if(type == CollisionType.boxParticle) {
return boxParticle;
}
else if(type == CollisionType.convexParticle) {
return convexParticle;
}
else if(type == CollisionType.cylinderCylinder) {
return convexConvex;
}
else if(type == CollisionType.sphereCylinder) {
return sphereConvex;
}
else if(type == CollisionType.planeCylinder) {
return planeConvex;
}
else if(type == CollisionType.boxCylinder) {
return boxConvex;
}
else if(type == CollisionType.convexCylinder) {
return convexConvex;
}
else if(type == CollisionType.heightfieldCylinder) {
return heightfieldCylinder;
}
else if(type == CollisionType.particleCylinder) {
return particleCylinder;
}
else if(type == CollisionType.particleTrimesh) {
return particleTrimesh;
}
else if(type == CollisionType.sphereTrimesh) {
return sphereTrimesh;
}
else if(type == CollisionType.planeTrimesh) {
return planeTrimesh;
}
else if(type == CollisionType.boxTrimesh) {
return boxTrimesh;
}
else if(type == CollisionType.cylinderTrimesh) {
return cylinderTrimesh;
}
else if(type == CollisionType.convexTrimesh) {
return convexTrimesh;
}
else if(type == CollisionType.trimeshTrimesh) {
return trimeshTrimesh;
}
}