Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 () {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement