Skip to content

Commit 563e2a9

Browse files
committed
fix computeAABB orientation mult (legacy schteppe#433)
schteppe#433
1 parent db35ad2 commit 563e2a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/collision/Ray.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export class Ray {
2929
* @property {Vec3} _direction
3030
*/
3131
this._direction = new Vec3()
32-
3332
/**
3433
* The precision of the ray. Used when checking parallelity etc.
3534
* @property {Number} precision
@@ -98,6 +97,7 @@ export class Ray {
9897
this.skipBackfaces = !!options.skipBackfaces
9998
this.collisionFilterMask = typeof options.collisionFilterMask !== 'undefined' ? options.collisionFilterMask : -1
10099
this.collisionFilterGroup = typeof options.collisionFilterGroup !== 'undefined' ? options.collisionFilterGroup : -1
100+
this.checkCollisionResponse = typeof (options.checkCollisionResponse) !== 'undefined' ? options.checkCollisionResponse : true;
101101
if (options.from) {
102102
this.from.copy(options.from)
103103
}

src/objects/Body.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export class Body extends EventTarget {
572572
offset.vadd(this.position, offset)
573573

574574
// Get shape world quaternion
575-
shapeOrientations[i].mult(bodyQuat, orientation)
575+
bodyQuat.mult(shapeOrientations[i], orientation);
576576

577577
// Get shape AABB
578578
shape.calculateWorldAABB(offset, orientation, shapeAABB.lowerBound, shapeAABB.upperBound)

0 commit comments

Comments
 (0)