-
Notifications
You must be signed in to change notification settings - Fork 0
B2d_body_create_box
hugh greene edited this page Jun 20, 2022
·
1 revision
Creates a new physics body in the given world with and generates a fixture with the given box shape.
Parameter | Description |
---|---|
world | index of the world to create the body in |
halfwidth | half the width of the box shape |
halfheight | half the height of the box shape |
integer: Returns the index of the newly created body.
// demonstrates creating a physics body with a fixture and shape
mybody = b2d_body_create_box(myworld, 5, 5);
NOTOC
edited by hpg678 on Github