[][src]Module physme::dim2

This module provides the primitives and systems for 2d physics simulation.

For examples, see the root of the crate.

Modules

stage

Structs

AngularTolerance

The global angular tolerance in radians, affects all semikinematic bodies.

FixedJointBehaviour

A joint behaviour that causes the anchored body to be rigidly fixed at an offset and an angle.

GlobalGravity

The global gravity that affects every RigidBody with the Semikinematic status.

GlobalStep

The global step value, affects all semikinematic bodies.

GlobalUp

The global up vector, affects all semikinematic bodies.

Joint

Allows one RigidBody to be anchored at another one in a pre-defined way, along with a local offset and angle.

Manifold

The manifold, representing detailed data on a collision between two RigidBodys.

MechanicalJointBehaviour

A joint behaviour that causes the anchored body to be accurately positioned with an offset and an angle.

NarrowPhase
Physics2dPlugin

This is what you want to add to your App if you want to run 2d physics simulation.

PhysicsStep
RigidBody

The rigid body.

Shape

The shape of a rigid body.

Size2

The two dimensional size of a Shape

Solver
SpringJointBehaviour

A joint behaviour that will move the anchored body into a position and angle relative to the anchor over time.

Enums

RotationMode

The axis on which to rotate the 2d rotation into a 3d quaternion.

TranslationMode

The plane on which to translate the 2d position into 3d coordinates.

Traits

JointBehaviour

Defines a set of behaviours on how joints should move the anchored body relative to the anchor.

Functions

broad_phase_system
joint_system
sync_transform_system

Type Definitions

BroadPhase
FixedJoint

Allows one RigidBody to be anchored at another one in a fixed way, along with a local offset and angle.

MechanicalJoint

Allows one RigidBody to be anchored at another one in a physically accurate way, along with a local offset and angle.

SpringJoint

Allows one RigidBody to be anchored at another one in a spring-y way, along with a local offset and angle.