Registry / other / parry2d

parry2d

JSON →
library0.26.1rscratesunverified

2 dimensional collision detection library in Rust.

# Cargo.toml [dependencies] parry2d = "0.26.1"
INSTALL
IMPORT
SIG · PARRY2D
P
parry2d
otherrustv0.26.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Contact
use parry2d::query::Contact;

Detect collision between two shapes.

use parry2d::query::Contact; use parry2d::shape::Ball; fn main() { let ball1 = Ball::new(1.0); let ball2 = Ball::new(1.0); let contact = Contact::between(&ball1, &ball2, &na::Isometry2::identity(), &na::Isometry2::new(na::Vector2::new(2.0, 0.0), 0.0)); println!("{:?}", contact); }
Debug
Known issues
gotchaRequires nalgebra for vector math.
fix
Add nalgebra as a dependency.
affects: >=0.26.0
Upgrade
Version history
0.26.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
parry2d — cargo add parry2d · libregistry