Crate mgf [] [src]

Modules

bitset

Structs

AABB

Axis Aligned Bounding Boxes are closed boxes aligned to the axes of the coordinate system. AABBs are described by a point and three half widths.

BVH

A Bounding Volume Hierarchy.

Capsule

A sphere swept along a line.

Compound

An aggregate structure of Spheres and Capsules. Has a position and rotation.

Contact

A contact is a collision between two objects where at least one object and has volume. A contact collision produces two contact points, a normal, and a time of impact in the interval [0, 1].

Contains

Specifies a collision in which the receiver object subsumes the argument object.

DefaultPhysConfig

The suggested set of parameters to use when resolving collisions.

Intersection

Intersection models a collision that occurs at some time and has a single point of contact. Useful for collisions that do not concern volume.

LocalContact

A local contact stores a contact plus the contact points relative to the space of the objects colliding.

Manifold

Structure for pruning unnecessary contact points.

Mesh

A triangle mesh is a set of triangles that forms some sort of mesh. There are no requirements on the convexivity of the mesh.

Moving

A geometry swept accross a given path of motion.

Overlaps

Specifies a collision in which two objects overlap. No further information is provided.

PhysicsState

My entire understanding of the natural world as applied to video games encapsulated in one structure.

Plane

Planes are a normal vector and a distance.

Pool

Growable array type that allows items to be removed and inserted without changing the indices of other entries.

Ray

Rays are points and direction with infinite distance. Distance vector does not need to be normalized.

Rectangle

Rectangles are a center point, two directions and two half widths.

RigidBody

Generic physical body that has a mass, a volume, and experiences linear and rotational movement.

Segment

Segments are Rays with finite distances.

Sphere

Spheres are a point and a distance. Like AABBs, spheres as bounds are closed.

StaticBody

A physical object that cannot move. Can be constructed from any shape. Only parameter required is a value for friction. A StaticBody is not a Shape and cannot be moved. StaticBodies contain a reference to the Shape they mimic and thus should not live very long.

Triangle

Triangles are three points in space.

Vertex

A point and a normal

Enums

Component

A component is a generic volume that can either be a Sphere or Capsule at runtime. Anything that can collide with a Sphere and a Capsule can collide with a component.

PoolEntry

Internal storage type used by Pool.

Constants

COLLISION_EPSILON

Maximum tolerence for error, i.e. what we consider the x86 floating point epsilon.

PERSISTENT_THRESHOLD_SQ

Minimum distance between two points required to not reject a point.

Traits

Bound

Bounds are objects that can collide and combine with each other. They also can be scaled, extended, and have a center that can be moved, along with a surface area.

BoundedBy

Geometries that are bounded by a type may be inserted into a BVH tree.

Collider

Determine if two objects collide and collect information on the collision if they do. The type of the collision checked for and the amount of information returned depends on the CollisionType argument requested by the callback passed to collide.

Delta

An object with a positional derivative over a timestep

Inertia

An object that has a moment of inertia.

MinDistance

Finds the result corresponding to the minimum distance between two objects.

PhysicsConfig

A set of constants necessary when performing collision resolution.

PhysicsObject

An object that exhibits physical properties.

Polygon

Polygons are objects composed of edges and vertices that can accurately describe whether or not they contain a point.

Shape

A Set of points in space. If an object can be moved around and has point something that can be called a center, it is a Shape.

Type Definitions

Rect