[−][src]Module oxygengine_physics_2d::prelude
Re-exports
pub use crate::component::*; |
pub use crate::resource::*; |
pub use crate::system::*; |
Modules
algebra | Dynamics-specific algebraic entities: velocity, forces, and inertias. |
counters | Counters for benchmarking various parts of the physics engine. |
detection | Collision detection information. |
force_generator | Persistent force generation. |
joint | Joints using the reduced-coordinates formalism or using constraints. |
material | Material data structures. |
math | Compilation flags dependent aliases for mathematical types. |
nalgebra | nalgebra |
ncollide2d | ncollide |
object | Objects that may be added to the physical world. |
solver | Constraint solver. |
utils | Miscellaneous utilities. |
volumetric | Volume and inertia tensor computation. |
world | The physics world. |
Structs
ActivationStatus | The activation status of a body. |
Ball | A Ball shape. |
BodyPartHandle | A unique identifier of a body part added to the world. |
BodyUpdateStatus | |
Capsule | SupportMap description of a capsule shape with its principal axis aligned with the |
Collider | A geometric entity that can be attached to a body so it can be affected by contacts and proximity queries. |
ColliderData | Data stored in each collider. |
ColliderDesc | A non-deformable collider builder. |
ColliderRemovalData | The data a collider set must return after a collider has been removed. |
Compound | A compound shape with an aabb bounding volume. |
ConvexPolygon | A 2D convex polygon. |
ConvexPolygonalFeature | A feature (face or vertex) of a 2D convex polygon. |
Cuboid | Shape of a box. |
DefaultBodySet | The default set containing all the bodies added to the world. |
DefaultColliderSet | The default set containing all the colliders added to the world. |
DeformableColliderDesc | A deformable collider builder. |
FEMSurface | A deformable surface using FEM to simulate linear elasticity. |
FEMSurfaceDesc | A builder for FEMSurface bodies. |
Ground | A singleton representing the ground. |
HeightField | A 2D heightfield. |
MassConstraintSystem | A deformable surface using a mass-LengthConstraint model with triangular elements. |
MassConstraintSystemDesc | A builder of a mass-constraint system. |
MassSpringSystem | A deformable surface using a mass-spring model with triangular elements. |
MassSpringSystemDesc | A builder for mass-spring systems. |
Multibody | An articulated body simulated using the reduced-coordinates approach. |
MultibodyDesc | A multibody builder. |
MultibodyLink | One link of a multibody. |
Plane | SupportMap description of a plane. |
Polyline | A polygonal line. |
RigidBody | A rigid body. |
RigidBodyDesc | The description of a rigid body, used to build a new |
Segment | A segment shape. |
ShapeHandle | A shared handle to an abstract shape. |
Triangle | A triangle shape. |
Enums
BodyPartMotion | |
BodyStatus | The status of a body. |
ColliderAnchor | Description of the way a collider is attached to a body. |
DeformationsType | The type of elements used to describe a deformation on a collision object. |
FeatureId | An identifier of a feature of a convex polyhedron. |
ForceType | The type of force to be applied with the |
SegmentPointLocation | Logical description of the location of a point on a triangle. |
TrianglePointLocation | Description of the location of a point on a triangle. |
Constants
ANGULAR_DIM | The maximum number of possible rotations of a rigid body. |
DIM | The maximum number of possible translations of a rigid body. |
SPATIAL_DIM | The maximum number of possible rotations and translations of a rigid body. |
Traits
Body | Trait implemented by all bodies supported by nphysics. |
BodyDesc | A abstract body descriptor to be passed to the physics |
BodyHandle | Trait auto-implemented for types that can be used as a Body handle. |
BodyPart | Trait implemented by each part of a body supported by nphysics. |
BodySet | Trait implemented by sets of bodies. |
ColliderHandle | Trait auto-implemented for types that can be used as a Collider handle. |
ColliderSet | Trait implemented by sets of colliders. |
CompositeShape | Trait implemented by shapes composed of multiple simpler shapes. |
ConvexPolyhedron | Trait implemented by all convex polyhedron. |
DeformableShape | Trait implemented by deformable shapes. |
Shape | Trait implemented by all shapes supported by ncollide. |
SupportMap | Traits of convex shapes representable by a support mapping function. |
Type Definitions
AngularDim | The dimension of the rotation. |
AngularInertia | The inertia tensor type. |
AngularVector | The angular vector type. |
DefaultBodyHandle | The body handle used by the |
DefaultBodyPartHandle | The body part handle used by the |
DefaultColliderHandle | The collider handle used by the |
Dim | The dimension of the ambient space. |
Force | The force type combining a linear force and a torque. |
Inertia | The inertia type. |
InertiaMatrix | The inertia matrix type. |
Isometry | The transformation matrix type. |
Jacobian | The type of a constraint jacobian in twist coordinates. |
JacobianSlice | The type of a slice of the constraint jacobian in twist coordinates. |
JacobianSliceMut | The type of a mutable slice of the constraint jacobian in twist coordinates. |
Matrix | Square matrix with dimension |
Orientation | The orientation type. |
Point | The point type. |
Rotation | The rotation type. |
RotationMatrix | The rotation matrix type. |
SpatialDim | The dimension of a spatial vector. |
SpatialMatrix | Square matrix with dimension |
SpatialVector | The vector type with dimension |
Translation | The translation type. |
Vector | The vector type. |
Velocity | The velocity type combining the linear velocity and the angular velocity. |