Trait RadialWorld

Source
pub trait RadialWorld: Adapter { }
Expand description

Sealed adapter for the existing d2/d3 PhysicsWorlds. See the module recipes. Generic consumers can accept W: RadialWorld; no caller-provided detector or callback runs between preflight and commit. The shared kernel uses World<B>.

use ferravex_physics::radial::*;
fn tick_pulse<W: RadialWorld>(world: &mut W, request: RadialImpulseRequest,
    scratch: &mut [Option<W::Candidate>], accepted: &mut [Option<RadialImpulse>])
    -> Result<RadialImpulseReport, RadialImpulseError>
{
    apply_radial_impulse(world, request, scratch, accepted)
}

Implementors§

Source§

impl RadialWorld for ferravex::physics::d2::PhysicsWorld

Source§

impl RadialWorld for ferravex::physics::d3::PhysicsWorld