Implement particle emitter parent modes

This commit is contained in:
JannisX11 2020-10-08 19:41:15 +02:00
parent 28b230cbc4
commit b10efbf36d
2 changed files with 4 additions and 0 deletions

View File

@ -989,6 +989,9 @@ class EffectAnimator extends GeneralAnimator {
if (locator && locator.parent instanceof Group) {
locator.parent.mesh.add(emitter.local_space);
emitter.local_space.position.fromArray(locator.from);
emitter.parent_mode = 'locator';
} else {
emitter.parent_mode = 'entity';
}
scene.add(emitter.global_space);
emitter.jumpTo(diff);

View File

@ -52,6 +52,7 @@ localStorage.setItem('startups', startups+1);
Wintersky.global_options.scale = 16;
Wintersky.global_options.loop_mode = 'once';
Wintersky.global_options.parent_mode = 'entity';
if (isApp) {
updateRecentProjects()