Skip to content

Commit

Permalink
fix #64
Browse files Browse the repository at this point in the history
  • Loading branch information
saharan committed May 17, 2024
1 parent c0c828a commit 68c1ba6
Show file tree
Hide file tree
Showing 5 changed files with 551 additions and 476 deletions.
40 changes: 38 additions & 2 deletions bin/js/OimoPhysics.js
Original file line number Diff line number Diff line change
Expand Up @@ -34019,7 +34019,25 @@ class oimo_dynamics_rigidbody_RigidBody {
this._invLocalInertiaWithoutRotFactor21 = 0;
this._invLocalInertiaWithoutRotFactor22 = 0;
if(this._type == 0) {
this._type = 1;
this._invMass = 1e-9;
this._invLocalInertiaWithoutRotFactor00 = 1e-9;
this._invLocalInertiaWithoutRotFactor01 = 0;
this._invLocalInertiaWithoutRotFactor02 = 0;
this._invLocalInertiaWithoutRotFactor10 = 0;
this._invLocalInertiaWithoutRotFactor11 = 1e-9;
this._invLocalInertiaWithoutRotFactor12 = 0;
this._invLocalInertiaWithoutRotFactor20 = 0;
this._invLocalInertiaWithoutRotFactor21 = 0;
this._invLocalInertiaWithoutRotFactor22 = 1e-9;
this._invLocalInertia00 = this._invLocalInertiaWithoutRotFactor00 * this._rotFactor.x;
this._invLocalInertia01 = this._invLocalInertiaWithoutRotFactor01 * this._rotFactor.x;
this._invLocalInertia02 = this._invLocalInertiaWithoutRotFactor02 * this._rotFactor.x;
this._invLocalInertia10 = this._invLocalInertiaWithoutRotFactor10 * this._rotFactor.y;
this._invLocalInertia11 = this._invLocalInertiaWithoutRotFactor11 * this._rotFactor.y;
this._invLocalInertia12 = this._invLocalInertiaWithoutRotFactor12 * this._rotFactor.y;
this._invLocalInertia20 = this._invLocalInertiaWithoutRotFactor20 * this._rotFactor.z;
this._invLocalInertia21 = this._invLocalInertiaWithoutRotFactor21 * this._rotFactor.z;
this._invLocalInertia22 = this._invLocalInertiaWithoutRotFactor22 * this._rotFactor.z;
}
}
let __tmp__00;
Expand Down Expand Up @@ -36075,7 +36093,25 @@ class oimo_dynamics_rigidbody_RigidBody {
this._invLocalInertiaWithoutRotFactor21 = 0;
this._invLocalInertiaWithoutRotFactor22 = 0;
if(this._type == 0) {
this._type = 1;
this._invMass = 1e-9;
this._invLocalInertiaWithoutRotFactor00 = 1e-9;
this._invLocalInertiaWithoutRotFactor01 = 0;
this._invLocalInertiaWithoutRotFactor02 = 0;
this._invLocalInertiaWithoutRotFactor10 = 0;
this._invLocalInertiaWithoutRotFactor11 = 1e-9;
this._invLocalInertiaWithoutRotFactor12 = 0;
this._invLocalInertiaWithoutRotFactor20 = 0;
this._invLocalInertiaWithoutRotFactor21 = 0;
this._invLocalInertiaWithoutRotFactor22 = 1e-9;
this._invLocalInertia00 = this._invLocalInertiaWithoutRotFactor00 * this._rotFactor.x;
this._invLocalInertia01 = this._invLocalInertiaWithoutRotFactor01 * this._rotFactor.x;
this._invLocalInertia02 = this._invLocalInertiaWithoutRotFactor02 * this._rotFactor.x;
this._invLocalInertia10 = this._invLocalInertiaWithoutRotFactor10 * this._rotFactor.y;
this._invLocalInertia11 = this._invLocalInertiaWithoutRotFactor11 * this._rotFactor.y;
this._invLocalInertia12 = this._invLocalInertiaWithoutRotFactor12 * this._rotFactor.y;
this._invLocalInertia20 = this._invLocalInertiaWithoutRotFactor20 * this._rotFactor.z;
this._invLocalInertia21 = this._invLocalInertiaWithoutRotFactor21 * this._rotFactor.z;
this._invLocalInertia22 = this._invLocalInertiaWithoutRotFactor22 * this._rotFactor.z;
}
}
let __tmp__00;
Expand Down
Loading

0 comments on commit 68c1ba6

Please sign in to comment.