Struct b3ChildShape
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
A child shape of a compound, as a tagged union. Mirror of b3ChildShape.
public struct b3ChildShapeInherited Members
Remarks
Box3D.Native.b3ChildShape.type selects which of Box3D.Native.b3ChildShape.capsule, Box3D.Native.b3ChildShape.hull, Box3D.Native.b3ChildShape.mesh or Box3D.Native.b3ChildShape.sphere is valid. Reading the wrong member yields garbage rather than an error.
Fields
- capsule
-
The capsule, valid when Box3D.Native.b3ChildShape.type is Box3D.Native.b3ShapeType.b3_capsuleShape.
- hull
-
The hull, valid when Box3D.Native.b3ChildShape.type is Box3D.Native.b3ShapeType.b3_hullShape.
- materialIndices
-
The material indices. Index zero is used for convex shapes.
- mesh
-
The mesh, valid when Box3D.Native.b3ChildShape.type is Box3D.Native.b3ShapeType.b3_meshShape.
- sphere
-
The sphere, valid when Box3D.Native.b3ChildShape.type is Box3D.Native.b3ShapeType.b3_sphereShape.
- transform
-
The transform placing this child in compound-local space.
- type
-
The union tag.