Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Let Line component define the default color
  • Loading branch information
GMartigny committed Dec 8, 2020
commit 6afe067bc997e5dfdbedcfd055c1cf681c4a05bf
6 changes: 3 additions & 3 deletions src/components/raycaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports.Component = registerComponent('raycaster', {
objects: {default: ''},
origin: {type: 'vec3'},
showLine: {default: false},
lineColor: {default: 'white'},
lineColor: {},
useWorldCoordinates: {default: false}
},

Expand Down Expand Up @@ -200,7 +200,7 @@ module.exports.Component = registerComponent('raycaster', {
},

/**
* Raycast for intersections and emit events for current and cleared inersections.
* Raycast for intersections and emit events for current and cleared intersections.
*/
checkIntersections: function () {
var clearedIntersectedEls = this.clearedIntersectedEls;
Expand Down Expand Up @@ -386,7 +386,7 @@ module.exports.Component = registerComponent('raycaster', {
* Children are flattened by one level, removing the THREE.Group wrapper,
* so that non-recursive raycasting remains useful.
*
* Only push children defined as component attachemnts (e.g., setObject3D),
* Only push children defined as component attachements (e.g., setObject3D),
* NOT actual children in the scene graph hierarchy.
*
* @param {Array<Element>} els
Expand Down