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

Geometry types and algorithms. More...

Collaboration diagram for Geometry:

Topics

 Sphere
 Sphere primitive.
 Capsule
 Capsule primitive.
 Convex Hull
 Convex hull primitive.
 Triangle Mesh
 Triangle mesh collision shape.
 Height Field
 Height field collision shape.
 Compound
 Compound collision shape.

Data Structures

struct  b3MassData
 This holds the mass data computed for a shape. More...

Functions

b3MassData b3ComputeSphereMass (const b3Sphere *shape, float density)
 Compute mass properties of a sphere.
b3MassData b3ComputeCapsuleMass (const b3Capsule *shape, float density)
 Compute mass properties of a capsule.
b3MassData b3ComputeHullMass (const b3HullData *shape, float density)
 Compute mass properties of a hull.
b3AABB b3ComputeSphereAABB (const b3Sphere *shape, b3Transform transform)
 Compute the bounding box of a transformed sphere.
b3AABB b3ComputeCapsuleAABB (const b3Capsule *shape, b3Transform transform)
 Compute the bounding box of a transformed capsule.
b3AABB b3ComputeHullAABB (const b3HullData *shape, b3Transform transform)
 Compute the bounding box of a transformed hull.
b3AABB b3ComputeMeshAABB (const b3MeshData *shape, b3Transform transform, b3Vec3 scale)
 Compute the bounding box of a transformed mesh. Scale may be non-uniform and have negative components.
b3AABB b3ComputeHeightFieldAABB (const b3HeightFieldData *shape, b3Transform transform)
 Compute the bounding box of a transformed height-field.
b3AABB b3ComputeCompoundAABB (const b3CompoundData *shape, b3Transform transform)
 Compute the bounding box of a compound.

Detailed Description

Geometry types and algorithms.

Definitions of spheres, capsules, hulls, meshes, height fields, and compounds.


Data Structure Documentation

◆ b3MassData

struct b3MassData

This holds the mass data computed for a shape.

Collaboration diagram for b3MassData:
Data Fields
b3Vec3 center The local center of mass position.
b3Matrix3 inertia The inertia tensor about the shape center of mass.
float mass The shape mass.