Corrected collision bug
This commit is contained in:
parent
ecee155751
commit
00bb56fee8
|
@ -313,6 +313,7 @@ function initWhompScene(scene, collidableObjects, loader, camera) {
|
||||||
scene,
|
scene,
|
||||||
null,
|
null,
|
||||||
function(object) {
|
function(object) {
|
||||||
|
object.raycastable = true;
|
||||||
if (object.material.name === 'Shape_088' ||
|
if (object.material.name === 'Shape_088' ||
|
||||||
object.material.name === 'Shape_089') {
|
object.material.name === 'Shape_089') {
|
||||||
object.raycastable = false;
|
object.raycastable = false;
|
||||||
|
|
Loading…
Reference in New Issue