Moving getCollisionShape function to parent class