浏览代码

changed function name to reset_position

Dave Schuyler 22 年之前
父节点
当前提交
05ac2f527e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      panda/src/particlesystem/particleSystem.cxx

+ 2 - 2
panda/src/particlesystem/particleSystem.cxx

@@ -187,7 +187,7 @@ birth_particle(void) {
   if (_local_velocity_flag == false)
     new_vel = new_vel * birth_to_render_xform;
 
-  bp->set_position_HandOfGod(world_pos/* + (NORMALIZED_RAND() * new_vel)*/);
+  bp->reset_position(world_pos/* + (NORMALIZED_RAND() * new_vel)*/);
   bp->set_velocity(new_vel);
 
   _living_particles++;
@@ -204,7 +204,7 @@ birth_particle(void) {
 // Description : spawns a new batch of particles
 ////////////////////////////////////////////////////////////////////
 void ParticleSystem::
-birth_litter(void) {
+birth_litter() {
   int litter_size, i;
 
   litter_size = _litter_size;