Method b3CreateHeightFieldShape
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3CreateHeightFieldShape(b3BodyId, b3ShapeDef*, b3HeightFieldData*)
Create a height-field shape and attach it to a body. The shape definition is fully cloned but the height field is not. Contacts are not created until the next time step. Height field is only allowed on static bodies.
public static extern b3ShapeId b3CreateHeightFieldShape(b3BodyId bodyId, b3ShapeDef* def, b3HeightFieldData* heightField)Parameters
bodyIdb3BodyId-
See the Box3D documentation.
defb3ShapeDef*-
See the Box3D documentation.
heightFieldb3HeightFieldData*-
See the Box3D documentation.
Returns
- b3ShapeId
-
the shape id for accessing the shape
Remarks
Warning: this holds reference to the input height field which must remain valid for the lifetime of this shape @warning this holds reference to the input height field which must remain valid for the lifetime of this shape