Box3D 0.1.0
A 3D physics engine for games
Loading...
Searching...
No Matches
b3ChildShape Struct Reference

Child shape of a compound. More...

#include <types.h>

Collaboration diagram for b3ChildShape:

Data Fields

union { 
b3Capsule capsule
 Capsule.
const b3HullDatahull
 Hull.
b3Mesh mesh
 Mesh.
b3Sphere sphere
 Sphere.
}; 
 Tagged union.
b3Transform transform
 Transform of the shape into compound local space.
int materialIndices [B3_MAX_COMPOUND_MESH_MATERIALS]
 Material indices.
b3ShapeType type
 The shape type (union tag).

Detailed Description

Child shape of a compound.

Field Documentation

◆ materialIndices

int b3ChildShape::materialIndices[B3_MAX_COMPOUND_MESH_MATERIALS]

Material indices.

Index 0 is used for convex shapes. todo limit to 64K?


The documentation for this struct was generated from the following file:
  • E:/box/box3d/include/box3d/types.h