generateControlPoints();
}
public ParticleLogicArcToPoint generateControlPoints()
{
firstControl = new Vector3(start.x + (target.x - start.x) / 3.0F, start.y + (target.y - start.y) / 3.0F, start.z + (target.z - start.z) / 3.0F);
secondControl = new Vector3(start.x + (target.x - start.x) / 3.0F * 2.0F, start.y + (target.y - start.y) / 3.0F * 2.0F, start.z + (target.z - start.z) / 3.0F * 2.0F);
double offsetX = rand.nextFloat() * offsetFactor - halfOffsetFactor;
double offsetZ = rand.nextFloat() * offsetFactor - halfOffsetFactor;
double offsetY = rand.nextFloat() * offsetFactor - halfOffsetFactor;
Vector3 offset = new Vector3(offsetX, offsetY, offsetZ);
firstControl = firstControl.add(offset);
secondControl = secondControl.add(offset);
return this;