Permalink
Browse files

Tweak defaults and constants

  • Loading branch information...
lmontoute committed Feb 5, 2019
1 parent b13278a commit b309e007034e46916cadc9ed4c499b1811553afb
Showing with 5 additions and 5 deletions.
  1. +1 −1 Editor/Utils/FluvioFXCollisionUtility.cs
  2. +3 −3 Editor/Utils/FluvioFXSettings.cs
  3. +1 −1 Shaders/FluvioCompute.cginc
@@ -20,7 +20,7 @@ public class BoundaryPressureProperties
public class BoundaryViscosityProperties
{
[Min(0.0f), Tooltip("Artificial viscosity force of the collision shape")]
public float Viscosity = 0.3f;
public float Viscosity = 0.03f;

[Tooltip("Velocity of the collider, in meters per second")]
public Vector Velocity = Vector3.zero;
@@ -2,9 +2,9 @@ namespace Thinksquirrel.FluvioFX.Editor
{
public static class FluvioFXSettings
{
public const float kEpsilon = 0.000001f;
public const float kMaxSqrVelocityChange = 100.0f;
public const int kMaxBucketCount = 64;
public const float kEpsilon = 9.99999944e-11f;
public const float kMaxSqrVelocityChange = 10000.0f;
public const int kMaxBucketCount = 32;
public const int kMaxNeighborCount = kMaxBucketCount * 27 - 1;
public const float kAutoParticleSizeFactor = 0.25f;
}
@@ -22,7 +22,7 @@ inline uint GetLocation(int3 location3, uint count)

inline int3 GetLocation3(float3 position, float cellSpace)
{
return (int3)((position + float3(1.0f / FLUVIO_EPSILON, 1.0f / FLUVIO_EPSILON, 1.0f / FLUVIO_EPSILON)) / cellSpace);
return (int3)((position + float3(1000000, 1000000, 1000000)) / cellSpace);
}

// ---------------------------------------------------------------------------------------

0 comments on commit b309e00

Please sign in to comment.