BlueBear icon

FloatableWater.cs

BlueBear | PRO | 02/12/14 12:33:43 PM UTC | 0 ⭐ | 355 👁️ | Never ⏰ | []
C# |

720 B

|

None

|

0 👍

/

0 👎

using UnityEngine;
using System.Collections;
 
[RequireComponent(typeof(BoxCollider))]
public class FloatableWater : MonoBehaviour {
 
 
    
    //wave parameters
    public float waveFreq1 = 0.0f;
    public float waveXMotion1 = 0.08f;
    public float waveYMotion1 = 0.015f;
    public float waveFreq2 = 1.3f;
    public float waveXMotion2 = 0.025f;
    public float waveYMotion2 = 0.10f;
    public float waveFreq3 = 0.3f;
    public float waveXMotion3 = 0.125f;
    public float waveYMotion3 = 0.03f;
    
    //how strong under water drag is compared to air drag
    public float waterDragFactor = 8;
 
    // Use this for initialization
    void Start () {
        collider.isTrigger = true;
    }
    
    // Update is called once per frame
    void Update () {
    
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  • Syutrsz icon
    03/31/26 10:22:13 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Best t33n active cpx link daily updates!
     Copy and paste the link in a new browser tab and then hit enter!
     https://crazyporn.@xxx/members/157354/?asgtbndr=1&play=true&spon=adworld&zone=400
     Remove the @ 
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎