forked from SeAIPalette/SeAIPalette
This commit is contained in:
parent
e1516ba2d4
commit
30362c96ea
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue