Exemplo n.º 1
0
    /// <summary>
    /// Vector Grid Point Constructor
    /// </summary>
    public VectorGridPoint(Vector3 position, float mass, float velocityDamping, Color color, float maxFogDistance, float maxFogAlphaScale, bool twoWayFog)
    {
        for (int loop = 0; loop < (int)VectorGridSpring.GridSpringType.Max; loop++)
        {
            m_GridSpring[loop] = new VectorGridSpring();
        }

        Init(position, mass, velocityDamping, color, maxFogDistance, maxFogAlphaScale, twoWayFog);
    }
Exemplo n.º 2
0
    /// <summary>
    /// Vector Grid Point Constructor
    /// </summary>
    public VectorGridPoint(Vector3 position, float mass, float velocityDamping, Color color, float maxFogDistance, float maxFogAlphaScale, bool twoWayFog)
    {
        for(int loop = 0; loop < (int)VectorGridSpring.GridSpringType.Max; loop++)
        {
            m_GridSpring[loop] = new VectorGridSpring();
        }

        Init(position, mass, velocityDamping, color, maxFogDistance, maxFogAlphaScale, twoWayFog);
    }
Exemplo n.º 3
0
 /// <summary>
 /// Connect this grid point to another with a spring
 /// </summary>
 public void ConnectTo(VectorGridPoint other, VectorGridSpring.GridSpringType springType, float stiffness, float damping, float restDistanceScalar)
 {
     m_GridSpring[(int)springType].Init(this, other, springType, stiffness, damping, restDistanceScalar);
 }