This commit is contained in:
p57492168 2022-06-23 14:05:51 +08:00
parent e1516ba2d4
commit 30362c96ea
1 changed files with 0 additions and 1 deletions

View File

@ -228,7 +228,6 @@ class SeaEnvEngine(object):
def create_rectangle_obstacle(self, x, y, width, height):
points = [(-width/2, -height/2), (-width/2, height/2),
(width/2, height/2), (width/2, -height/2)]
# points = [(-width, -height), (-width, 0), (0, 0), (0, -height)]
mass = 9999999999
moment = pymunk.moment_for_poly(mass, points, (0, 0))
obstacle_body = pymunk.Body(mass=mass, moment=moment)