Table of Contents

Struct b3CompoundData

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

A baked compound shape. Mirror of b3CompoundData.

public struct b3CompoundData

Inherited Members

Remarks

A large but highly optimized structure with its arrays living past the end, reached through byte offsets. It appears in the broad phase as a single shape.

Fields

byteCount

The total size of this compound in bytes, including the trailing arrays.

capsuleCount

The number of capsules.

capsuleOffset

The byte offset of the capsule array from the start of this structure.

hullCount

The number of hull instances.

hullOffset

The byte offset of the hull instance array from the start of this structure.

materialCount

The number of materials.

materialOffset

The byte offset of the material array from the start of this structure.

meshCount

The number of mesh instances.

meshOffset

The byte offset of the mesh instance array from the start of this structure.

nodeOffset

The byte offset of the tree node array from the start of this structure.

sharedHullCount

The number of distinct hulls shared by those instances. Diagnostic.

sharedMeshCount

The number of distinct meshes shared by those instances. Diagnostic.

sphereCount

The number of spheres.

sphereOffset

The byte offset of the sphere array from the start of this structure.

tree

The immutable dynamic tree over the children.

version

The format version. Must equal Box3D.Native.Constants.B3_COMPOUND_VERSION.