File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pub fn random_vec3_snorm(rng: &mut impl Rng) -> Vec3 {
69
69
70
70
// 50/50 chance of returning random_vec3_snorm or random_vec3_snorm_outlier.
71
71
fn random_vec3_snorm_maybe_outlier ( rng : & mut impl Rng ) -> Vec3 {
72
- if rng. gen :: < bool > ( ) {
72
+ if rng. r# gen:: < bool > ( ) {
73
73
random_vec3_snorm ( rng)
74
74
} else {
75
75
random_vec3_snorm_outlier ( rng)
@@ -120,7 +120,7 @@ fn random_quat_outlier(rng: &mut impl Rng) -> Quat {
120
120
121
121
// 50/50 chance of returning random_quat or random_quat_outlier.
122
122
fn random_quat_maybe_outlier ( rng : & mut impl Rng ) -> Quat {
123
- if rng. gen :: < bool > ( ) {
123
+ if rng. r# gen:: < bool > ( ) {
124
124
random_quat ( rng)
125
125
} else {
126
126
random_quat_outlier ( rng)
@@ -370,15 +370,15 @@ pub fn spawn_joints(
370
370
let mut joints: Vec < Entity > = Vec :: with_capacity ( num) ;
371
371
372
372
let root_joint = commands
373
- . spawn ( ( Transform :: IDENTITY , RandomMeshAnimation :: new ( rng. gen ( ) ) ) )
373
+ . spawn ( ( Transform :: IDENTITY , RandomMeshAnimation :: new ( rng. r# gen( ) ) ) )
374
374
. set_parent ( base)
375
375
. id ( ) ;
376
376
377
377
joints. push ( root_joint) ;
378
378
379
379
for _ in 1 ..num {
380
380
let joint = commands
381
- . spawn ( ( Transform :: IDENTITY , RandomMeshAnimation :: new ( rng. gen ( ) ) ) )
381
+ . spawn ( ( Transform :: IDENTITY , RandomMeshAnimation :: new ( rng. r# gen( ) ) ) )
382
382
. set_parent ( root_joint)
383
383
. id ( ) ;
384
384
You can’t perform that action at this time.
0 commit comments