Skip to content

Commit

Permalink
fix computeAABB orientation mult (legacy schteppe#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
stockhuman committed Mar 7, 2020
1 parent db35ad2 commit 563e2a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/collision/Ray.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export class Ray {
* @property {Vec3} _direction
*/
this._direction = new Vec3()

/**
* The precision of the ray. Used when checking parallelity etc.
* @property {Number} precision
Expand Down Expand Up @@ -98,6 +97,7 @@ export class Ray {
this.skipBackfaces = !!options.skipBackfaces
this.collisionFilterMask = typeof options.collisionFilterMask !== 'undefined' ? options.collisionFilterMask : -1
this.collisionFilterGroup = typeof options.collisionFilterGroup !== 'undefined' ? options.collisionFilterGroup : -1
this.checkCollisionResponse = typeof (options.checkCollisionResponse) !== 'undefined' ? options.checkCollisionResponse : true;
if (options.from) {
this.from.copy(options.from)
}
Expand Down
2 changes: 1 addition & 1 deletion src/objects/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ export class Body extends EventTarget {
offset.vadd(this.position, offset)

// Get shape world quaternion
shapeOrientations[i].mult(bodyQuat, orientation)
bodyQuat.mult(shapeOrientations[i], orientation);

// Get shape AABB
shape.calculateWorldAABB(offset, orientation, shapeAABB.lowerBound, shapeAABB.upperBound)
Expand Down

0 comments on commit 563e2a9

Please sign in to comment.