Crate amethyst_rhusics[][src]

Integration of amethyst and rhusics

Re-exports

pub extern crate collision;
pub extern crate rhusics_core;
pub extern crate rhusics_ecs;

Structs

PhysicsBundle2

Bundle for configuring 2D physics.

PhysicsBundle3

Bundle for configuring 3D physics, using the basic collision detection setup in rhusics.

PoseTransformSyncSystem

System that copies transform information from BodyPose in rhusics into Transform in amethyst.

Traits

AsTransform

Utility trait for converting a transform type into an amethyst Transform.

Convert

Utility trait for converting data between types.

Functions

pick_ray

Generate a ray for picking, based on the clicked position in pixel coordinates.

pick_ray_ndc

Generate a ray for picking, based on the clicked position in normalized device coordinates.

setup_2d_arena

Setup 2D arena.

setup_3d_arena

Setup 3D arena.

time_sync

Utility function to sync time management from amethysts view of time, to rhusics view of time.

Type Definitions

DefaultPhysicsBundle2

Utility type for a default 2D physics setup (including collision detection).

DefaultPhysicsBundle3

Utility type for a default 3D physics setup (including collision detection).

PoseTransformSyncSystem2

Utility type for a 2D sync system (from BodyPose to Transform).

PoseTransformSyncSystem3

Utility type for a 3D sync system (from BodyPose to Transform).