Skip to content

Commit d551ef3

Browse files
committed
Added RayDef
1 parent 034161b commit d551ef3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/cameras/sprite3d/Camera.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,18 @@ var Camera = new Class({
174174
*/
175175
this.far = 100;
176176

177+
/**
178+
* @typedef {object} RayDef
179+
*
180+
* @property {Phaser.Math.Vector3} origin - [description]
181+
* @property {Phaser.Math.Vector3} direction - [description]
182+
*/
183+
177184
/**
178185
* [description]
179186
*
180187
* @name Phaser.Cameras.Sprite3D#ray
181-
* @type {{origin:Phaser.Math.Vector3,direction:Phaser.Math.Vector3}}
188+
* @type {RayDef}
182189
* @since 3.0.0
183190
*/
184191
this.ray = {
@@ -774,7 +781,7 @@ var Camera = new Class({
774781
* @param {number} x - [description]
775782
* @param {number} [y] - [description]
776783
*
777-
* @return {{origin:Phaser.Math.Vector3,direction:Phaser.Math.Vector3}} [description]
784+
* @return {RayDef} [description]
778785
*/
779786
getPickRay: function (x, y)
780787
{

0 commit comments

Comments
 (0)