Skip to content

Commit 40329d2

Browse files
author
Steven Yau
committed
1 parent 2c5cab8 commit 40329d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/collision/Ray.js

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ Ray.prototype.intersectWorld = function (world, options) {
109109
this.skipBackfaces = !!options.skipBackfaces;
110110
this.collisionFilterMask = typeof(options.collisionFilterMask) !== 'undefined' ? options.collisionFilterMask : -1;
111111
this.collisionFilterGroup = typeof(options.collisionFilterGroup) !== 'undefined' ? options.collisionFilterGroup : -1;
112+
this.checkCollisionResponse = typeof(options.checkCollisionResponse) !== 'undefined' ? options.checkCollisionResponse : true;
113+
112114
if(options.from){
113115
this.from.copy(options.from);
114116
}

src/objects/Body.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ Body.prototype.computeAABB = function(){
664664
offset.vadd(this.position, offset);
665665

666666
// Get shape world quaternion
667-
shapeOrientations[i].mult(bodyQuat, orientation);
667+
bodyQuat.mult(shapeOrientations[i], orientation);
668668

669669
// Get shape AABB
670670
shape.calculateWorldAABB(offset, orientation, shapeAABB.lowerBound, shapeAABB.upperBound);

0 commit comments

Comments
 (0)