Skip to main content

attach_spring

Function attach_spring 

Source
pub fn attach_spring(
    world: &mut World,
    parent: Entity,
    child: Entity,
    rest_length: f32,
    stiffness: f32,
    damping: f32,
) -> Option<JointHandle>
Expand description

Connects two bodies with a spring. Suspension, bouncy attachments.