Skip to content

Update math module references and set minimum version for threejs #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/three-ik.module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AxesHelper, Color, ConeBufferGeometry, Math as Math$1, Matrix4, Mesh, MeshBasicMaterial, Object3D, Vector3 } from 'three';
import { AxesHelper, Color, ConeBufferGeometry, MathUtils as Math$1, Matrix4, Mesh, MeshBasicMaterial, Object3D, Vector3 } from 'three';

var t1 = new Vector3();
var t2 = new Vector3();
Expand Down
2 changes: 1 addition & 1 deletion docs/IKBallConstraint.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 class="page-title">Source: IKBallConstraint.js</h1>

<section>
<article>
<pre class="prettyprint source linenums"><code>import { Quaternion, Matrix4, Vector3, Math as ThreeMath } from 'three';
<pre class="prettyprint source linenums"><code>import { Quaternion, Matrix4, Vector3, MathUtils as ThreeMath } from 'three';
import { transformPoint, getCentroid, getWorldPosition, setQuaternionFromDirection } from './utils.js';

const Z_AXIS = new Vector3(0, 0, 1);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"three.js"
],
"peerDependencies": {
"three": "*"
"three": "^0.125.0"
},
"repository": "https://github.com/jsantell/THREE.IK",
"dependencies": {}
Expand Down
2 changes: 1 addition & 1 deletion src/IKBallConstraint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Vector3, Math as ThreeMath } from 'three';
import { Vector3, MathUtils as ThreeMath } from 'three';
import { transformPoint, getCentroid, getWorldPosition, setQuaternionFromDirection } from './utils.js';

const Z_AXIS = new Vector3(0, 0, 1);
Expand Down