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".
Implementors§
Source§impl DebugRenderConstraint<2> for DistanceJoint
Available on crate feature debug-plugin only.
impl DebugRenderConstraint<2> for DistanceJoint
Available on crate feature
debug-plugin only.Source§impl DebugRenderConstraint<2> for FixedJoint
Available on crate feature debug-plugin only.
impl DebugRenderConstraint<2> for FixedJoint
Available on crate feature
debug-plugin only.Source§impl DebugRenderConstraint<2> for PrismaticJoint
Available on crate feature debug-plugin only.
impl DebugRenderConstraint<2> for PrismaticJoint
Available on crate feature
debug-plugin only.Source§impl DebugRenderConstraint<2> for RevoluteJoint
Available on crate feature debug-plugin only.
impl DebugRenderConstraint<2> for RevoluteJoint
Available on crate feature
debug-plugin only.Source§impl DebugRenderConstraint<2> for SphericalJoint
Available on crate feature debug-plugin only.
impl DebugRenderConstraint<2> for SphericalJoint
Available on crate feature
debug-plugin only.