The Particle Effect plugin for Altizure Javascript SDK
__
This plugin needs altizure
defined.
This plugin has to be used together with the altizure
module. Make sure altizure
is in your dependencies (or devDependencies) list in package.json
file.
import {Sandbox} from 'altizure'
import ParticleEffectsMarker from 'altizure-plugin-particle-effect'
let options = {
altizureApi:{
key: your key here...
}
}
let sandbox = new Sandbox('page-content', options)
let particles = new ParticleEffectsMarker({
sandbox: sandbox,
position: {lng: 113.94502395441609, lat: 22.537514302934216, alt: 36.23341798691775},
effect: 'fire', // or 'smoke', 'snow', 'clouds'
scale: 1
})
<head>
<script type="text/javascript" src="https://unpkg.com/altizure/release/altizure-sdk.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/altizure-plugin-particle-effect"></script>
</head>
<body>
<div id="page-content" />
<script>
let options = {
altizureApi:{
key: your key here...
}
}
let sandbox = new altizure.Sandbox('page-content', options)
let particles = new altizure.ParticleEffectsMarker({
sandbox: sandbox,
position: {lng: 113.94502395441609, lat: 22.537514302934216, alt: 36.23341798691775},
effect: 'fire', // or 'smoke', 'snow', 'clouds'
scale: 1
})
</script>
</body>