[−][src]Module newton::handle
A type for referencing bodies, collisions, and joints.
use newton::prelude::*; use newton::handle::Handle; use newton::{Newton, Sphere, Collision}; let newton = Newton::create(); let sphere = Sphere::create(&newton, 1.0, None); sphere.set_user_id(42); let sphere = sphere.into_handle(&newton); let col = newton.storage().collision(sphere); assert_eq!(Some(42), col.map(|b| b.user_id())); assert_eq!(None, newton.storage().collision(Handle::null()));
Structs
| Handle |
Traits
| AsHandle | |
| FromHandle | |
| IntoHandle |