triangle obstacle class is created