BLUELOVETH 2 years ago
parent
commit
13eed14805
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/modules/box2d.md

+ 1 - 1
docs/modules/box2d.md

@@ -145,5 +145,5 @@ class Body:
 import box2d
 import box2d
 
 
 world = box2d.World()
 world = box2d.World()
-body = world.create_body()
+body = box2d.Body(world)
 ```
 ```