Registry / other / parry3d

parry3d

JSON →
library0.26.1rscratesunverified

3 dimensional collision detection library in Rust.

# Cargo.toml [dependencies] parry3d = "0.26.1"
INSTALL
IMPORT
SIG · PARRY3D
P
parry3d
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.

RayCast
use parry3d::query::RayCast;

Cast a ray against a ball shape and get intersection info.

use parry3d::query::RayCast; use parry3d::shape::Ball; use na::Point3; let ball = Ball::new(1.0); let ray = Ray::new(Point3::new(0.0, 0.0, 0.0), Vector3::new(1.0, 0.0, 0.0)); let hit = ball.cast_local_ray(&ray, f32::MAX, true); println!("{:?}", hit);
Debug
Known issues
gotchaUses nalgebra for vectors; ensure nalgebra is in dependencies.
fix
Add nalgebra to Cargo.toml.
affects: >=0.26.0
Upgrade
Version history
0.26.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
parry3d — cargo add parry3d · libregistry