Call this function to initialise the collision object in the shape of a capsule Here a capsule is taken to mean a cylinder with a hemisphere rounding off each end.