pub trait DebugRenderConstraint<const N: usize>: EntityConstraint<N> {
type Context: SystemParam;
// Required method
fn debug_render(
&self,
positions: [Vector; N],
rotations: [Rotation; N],
context: &mut SystemParamItem<'_, '_, Self::Context>,
gizmos: &mut Gizmos<'_, '_, PhysicsGizmos>,
config: &PhysicsGizmos,
);
}
Expand description
A trait for rendering debug information about constraints.
Add the debug_render_constraint
system to render all constraints that implement this trait.
Required Associated Types§
Sourcetype Context: SystemParam
type Context: SystemParam
A SystemParam
type for any additional ECS access required for rendering the constraint.
Required Methods§
Sourcefn debug_render(
&self,
positions: [Vector; N],
rotations: [Rotation; N],
context: &mut SystemParamItem<'_, '_, Self::Context>,
gizmos: &mut Gizmos<'_, '_, PhysicsGizmos>,
config: &PhysicsGizmos,
)
fn debug_render( &self, positions: [Vector; N], rotations: [Rotation; N], context: &mut SystemParamItem<'_, '_, Self::Context>, gizmos: &mut Gizmos<'_, '_, PhysicsGizmos>, config: &PhysicsGizmos, )
Renders the debug information for the constraint.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.