Implement particle emitter parent modes
This commit is contained in:
parent
28b230cbc4
commit
b10efbf36d
@ -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);
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user