本文整理汇总了Java中org.jbox2d.particle.ParticleGroupDef类的典型用法代码示例。如果您正苦于以下问题:Java ParticleGroupDef类的具体用法?Java ParticleGroupDef怎么用?Java ParticleGroupDef使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParticleGroupDef类属于org.jbox2d.particle包,在下文中一共展示了ParticleGroupDef类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createParticleGroup
import org.jbox2d.particle.ParticleGroupDef; //导入依赖的package包/类
/**
* Create a particle group whose properties have been defined. No reference to the definition is
* retained.
*
* @warning This function is locked during callbacks.
*/
public ParticleGroup createParticleGroup(ParticleGroupDef def) {
assert (isLocked() == false);
if (isLocked()) {
return null;
}
ParticleGroup g = m_particleSystem.createParticleGroup(def);
return g;
}
示例2: DwParticleSpawn
import org.jbox2d.particle.ParticleGroupDef; //导入依赖的package包/类
public DwParticleSpawn(World world, DwViewportTransform transform){
this.world = world;
this.transform = transform;
this.pdestroyer = new DwParticleDestroyer(world, transform);
this.group_def = new ParticleGroupDef();
this.group_def.setColor(new Color3f(1,0.35f, 0.15f));
this.group_def.flags = ParticleType.b2_waterParticle | ParticleType.b2_viscousParticle;
this.group_def.groupFlags = 0;
setCircleShape(30);
}