Skip to content

B2d_body_create_shape

hugh greene edited this page Jun 20, 2022 · 1 revision

Description

Creates a new physics body in the given world with and generates a fixture with the given shape.

Parameters

Parameter Description
world index of the world to create the body in
shape index of the shape to create the bodies fixture with

Return Values

integer: Returns the index of the newly created body.

Example Call

// demonstrates creating a physics body with a fixture and shape
mybody = b2d_body_create_shape(myworld, myshape);

NOTOC

Clone this wiki locally