mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Remove particleTrailEntity from every prox check, the trail no longer needs to be updated each check.
This commit is contained in:
parent
397d2a6853
commit
37ee2a31d4
1 changed files with 2 additions and 5 deletions
|
@ -53,11 +53,7 @@
|
|||
azimuthFinish: 180
|
||||
};
|
||||
|
||||
if (particleTrailEntity === null) {
|
||||
particleTrailEntity = Entities.addEntity(props);
|
||||
} else {
|
||||
Entities.editEntity(particleTrailEntity, {})
|
||||
}
|
||||
}
|
||||
|
||||
function particleExplode() {
|
||||
|
@ -122,7 +118,8 @@
|
|||
var ballPos = Entities.getEntityProperties(_entityID, ['position']).position;
|
||||
var isAnyAvatarInRange = AvatarList.isAvatarInRange(ballPos, 1);
|
||||
|
||||
particleTrail();
|
||||
if (particleTrailEntity) particleTrail();
|
||||
|
||||
if (isAnyAvatarInRange) {
|
||||
clearProxCheck();
|
||||
particleExplode();
|
||||
|
|
Loading…
Reference in a new issue