Skip to content

Commit 114ba23

Browse files
committed
Start of new Zone feature
1 parent f2f64e1 commit 114ba23

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var Class = require('../../../utils/Class');
2+
var GetFastValue = require('../../../utils/object/GetFastValue');
3+
4+
var RandomZone = new Class({
5+
6+
initialize:
7+
8+
function RandomZone (source, steps)
9+
{
10+
if (steps === undefined) { steps = 1; }
11+
12+
this.source = source;
13+
14+
this.steps = steps;
15+
16+
this.counter = 0;
17+
},
18+
19+
getPoint: function (particle)
20+
{
21+
}
22+
23+
});
24+
25+
module.exports = RandomZone;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var Class = require('../../../utils/Class');
2+
3+
var RandomZone = new Class({
4+
5+
initialize:
6+
7+
function RandomZone (source)
8+
{
9+
this.source = source;
10+
},
11+
12+
getPoint: function (particle)
13+
{
14+
this.source.getRandomPoint(particle);
15+
}
16+
17+
});
18+
19+
module.exports = RandomZone;

0 commit comments

Comments
 (0)