| 程序包 | 说明 |
|---|---|
| com.amap.api.maps.model.particle |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RandomVelocityBetweenTwoConstants
速度生长器
随机产生指定范围内的速度
Speed Generator Randomly generates speeds within the specified range |
| 限定符和类型 | 方法和说明 |
|---|---|
VelocityGenerate |
ParticleOverlayOptions.getParticleStartSpeed()
获取初始速度
Get the initial velocity |
| 限定符和类型 | 方法和说明 |
|---|---|
ParticleOverlayOptions |
ParticleOverlayOptions.setParticleStartSpeed(VelocityGenerate startSpeed)
粒子初始速度,每秒多少个像素
Initial velocity of particles, in pixels per second |
void |
ParticleOverlay.setParticleStartSpeed(VelocityGenerate startSpeed)
每个粒子的初始速度,单位像素/秒
The initial speed of each particle, in pixels per second. |
void |
ParticleOverLifeModule.setVelocityOverLife(VelocityGenerate overLife)
速度变化,生命之前内的速度为 开始速度 + 速度变化
可以通过速度变化让粒子移动的距离更远或者更近
Speed changes, the speed within the lifespan is the initial speed + speed change Speed changes can make the particle move farther or closer |