[][src]Crate specs_physics

Re-exports

pub use nalgebra as math;
pub use self::body::PhysicsBody;
pub use self::body::PhysicsBodyBuilder;
pub use self::collider::PhysicsCollider;
pub use self::collider::PhysicsColliderBuilder;
pub use self::collider::Shape;

Modules

body
collider
systems

Structs

Gravity

Gravity is a newtype for Vector3. It represents a constant acceleration affecting all physical objects in the scene.

Physics

The Physics Resource contains the nphysics World and a set of HashMaps containing handles to objects of the World. These are necessary so we can properly react to removed Components and clean up our World accordingly.

PhysicsParent

The PhysicsParent Component is used to represent a parent/child relationship between physics based Entitys.

TimeStep

The TimeStep is used to set the timestep of the nphysics integration, see nphysics::world::World::set_timestep(..).

Functions

physics_dispatcher

Convenience function for configuring and building a Dispatcher with all required physics related Systems.

register_physics_systems

Convenience function for registering all required physics related Systems to the given DispatcherBuilder. This also serves as a blueprint on how