File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ called once per frame.
252
252
253
253
The pool needs to know which particles are available for reuse. It gets this
254
254
from the particle's ` inUse() ` function. This function takes advantage of the fact that
255
- particles have a limited lifetime and uses the ` _framesLeft ` variable to
255
+ particles have a limited lifetime and uses the ` framesLeft_ ` variable to
256
256
discover which particles are in use without having to store a separate flag.
257
257
258
258
The pool class is also simple:
@@ -319,7 +319,7 @@ the data for the unused particles themselves.
319
319
320
320
When a particle isn't in use, most of its state is irrelevant. Its position and
321
321
velocity aren't being used. The only state it needs is the stuff required to
322
- tell if it's dead. In our example, that's the ` _framesLeft ` member. All those
322
+ tell if it's dead. In our example, that's the ` framesLeft_ ` member. All those
323
323
other bits can be reused. Here's a revised particle:
324
324
325
325
^code 4
You can’t perform that action at this time.
0 commit comments