Method b3CreateBody
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3CreateBody(b3WorldId, b3BodyDef*)
Create a rigid body given a definition. No reference to the definition is retained. So you can create the definition on the stack and pass it as a pointer. @code{.c} b3BodyDef bodyDef = b3DefaultBodyDef(); b3BodyId myBodyId = b3CreateBody(myWorldId, &bodyDef); @endcode
public static extern b3BodyId b3CreateBody(b3WorldId worldId, b3BodyDef* def)Parameters
Returns
- b3BodyId
-
See the Box3D documentation.
Remarks
Warning: This function is locked during callbacks. @warning This function is locked during callbacks.