Closed Zachary19980701 closed 2 years ago
I add collision function in miniworld.py file to achieve this function
def collision(self, ent0, min_x, max_x, min_z, max_z):
if ent0.pos[0]>min_x and ent0.pos[0]<max_x and ent0.pos[2]>min_y and ent0.pos[2]<max_y:
return True
else:
return False
Would you be able to make a PR to add this feature?
I will add this feature in future work
Thanks for your contribution. In my project I need to implement collision effect. I now do this by comparing the coordinates of the anchor with the coordinates of the wall. I would like to ask if there is a better way to do it, maybe I can make a contribution to this library.