Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 630 vs 631 for /trunk/Source Code/Dynamics/Entities/Particles/ConcreteGenerators/ParticleVelocityFromPositionGenerator.cpp

Diff revisions: vs.
  @@ -4,12 +4,12 @@
4 4
5 5 void ParticleVelocityFromPositionGenerator::generate(vectorImpl<std::future<void>>& packagedTasks,
6 6 const U64 deltaTime,
7 - std::shared_ptr<ParticleData> p,
7 + ParticleData& p,
8 8 U32 startIndex,
9 9 U32 endIndex) {
10 10 for (U32 i = startIndex; i < endIndex; ++i) {
11 - p->_velocity[i].xyz(Random(_minScale, _maxScale) *
12 - (p->_position[i].xyz() - _offset));
11 + p._velocity[i].xyz(Random(_minScale, _maxScale) *
12 + (p._position[i].xyz() - _offset));
13 13 }
14 14 }
15 15 };