checkpoint
This commit is contained in:
parent
ec2a99e239
commit
99d58cbcac
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ fn falling_cat(
|
||||||
let up = xform.translation.normalize();
|
let up = xform.translation.normalize();
|
||||||
let bike_up = xform.up();
|
let bike_up = xform.up();
|
||||||
|
|
||||||
|
let wright = xform.right().cross(up);
|
||||||
|
let wback = wright.cross(up);
|
||||||
|
|
||||||
let torque = bike_up.cross(up).normalize_or_zero();
|
let torque = bike_up.cross(up).normalize_or_zero();
|
||||||
let cos = up.dot(bike_up);
|
let cos = up.dot(bike_up);
|
||||||
let cos = if cos.is_finite() { cos } else { 1.0 };
|
let cos = if cos.is_finite() { cos } else { 1.0 };
|
||||||
|
|
Loading…
Reference in a new issue