fn from(shape: Shape<N>) -> Self {
        Self {
            shape,
            offset_from_parent: Isometry3::identity(),
            density: N::from_f32(1.3).unwrap(),
            material: MaterialHandle::new(BasicMaterial::default()),
            margin: N::from_f32(0.2).unwrap(), // default was: 0.01
            collision_groups: CollisionGroups::default(),
            linear_prediction: N::from_f32(0.002).unwrap(),
            angular_prediction: N::from_f32(PI / 180.0 * 5.0).unwrap(),
            sensor: false,
        }
    }
/// Creates a new `PhysicsColliderBuilder` from the given `Shape`. This
//  also populates the `PhysicsCollider` with sane defaults.
Creates a new `PhysicsColliderBuilder` from the given `Shape`. This
also populates the `PhysicsCollider` with sane defaults.
Creates a new ` PhysicsColliderBuilder ` from the given ` Shape ` . This also populates the ` PhysicsCollider ` with sane defaults .
fn from(shape: Shape<N>) -> Self {
        Self {
            shape,
            offset_from_parent: Isometry3::identity(),
            density: N::from_f32(1.3).unwrap(),
            material: MaterialHandle::new(BasicMaterial::default()),
            margin: N::from_f32(0.2).unwrap(), // default was: 0.01
            collision_groups: CollisionGroups::default(),
            linear_prediction: N::from_f32(0.002).unwrap(),
            angular_prediction: N::from_f32(PI / 180.0 * 5.0).unwrap(),
            sensor: false,
        }
    }
fn from ( shape : Shape < N > ) -> Self { Self { shape , offset_from_parent : Isometry3 :: identity ( ) , density : N :: from_f32 ( 1.3 ) . unwrap ( ) , material : MaterialHandle :: new ( BasicMaterial :: default ( ) ) , margin : N :: from_f32 ( 0.2 ) . unwrap ( ) , // default was: 0.01 collision_groups : CollisionGroups :: default ( ) , linear_prediction : N :: from_f32 ( 0.002 ) . unwrap ( ) , angular_prediction : N :: from_f32 ( PI / 180.0 * 5.0 ) . unwrap ( ) , sensor : false , } }
Creates a new `PhysicsColliderBuilder` from the given `Shape`.
Creates a new ` PhysicsColliderBuilder ` from the given ` Shape ` .
shape
Shape<N>