Wave for the water script.

Author Topic: Wave for the water script.  (Read 1811 times)

I spend  time many hour for study about the water. I found this torque script have the link at:
http://docs.garagegames.com/torque-3d/reference/classWaterObject.html#a24f6bc399955c8bdc1829dd13b49e622
1.Direction-Direction waves flow toward shores.
2.Magnitude-Height of water undulation.
3.Speed-Speed of water undulation.

I wrote this script.
Code: [Select]
package WaveDir //Direction waves flow toward shores.
{
    function WaterObject::waveDir(%Object)
   {
   
            {
                
            }
    waveDir = "3";    
   }
};
activatePackage(WaveDir)


package WaveMagnitude //Height of water undulation.
{
    function WaterObject::waveMagnitude
   {
   
            {
                
            }
            waveMagnitude = "3";    
   }
};
activatePackage(WaveMagitude)


package WaveSpeed //Speed of water undulation.
{
    function WaterObject::waveSpeed
   {
   
            {
                
            }
   waveSpeed = "3";    
   }
};
activatePackage(WaveSpeed)
And I will add GUI to Environment with the scale bar for water wave. If these wrong, please tell to me.

Request thread at: http://forum.blockland.us/index.php?topic=250679.0

I am not sure about this
waterPlane-fxPlane
waterzone-PhysicalZone
They found at GUI in script.
« Last Edit: January 29, 2014, 03:41:28 AM by Furling² »

  • WaterBlock objects do not exist anymore.
  • That code is the most horrifying thing I have ever seen.

  • WaterBlock objects do not exist anymore.
  • That code is the most horrifying thing I have ever seen.
removed WaterBlock. That script just set example. I ask for a help.

Yes, but how are you planning to use WaterBlock features without a WaterBlock?

Yes, but how are you planning to use WaterBlock features without a WaterBlock?
We have figure it out with this
waterPlane-fxPlane
waterzone-PhysicalZone

something like this:

Code: [Select]
new fxPlane(WaterPlane) {

};

new PhysicalZone(WaterZone) {

};
« Last Edit: January 29, 2014, 04:13:13 AM by Furling² »

We have figure it out with this
waterPlane-fxPlane
waterzone-PhysicalZone
umm what the forget
the waves and everything won't work with anything BUT water blocks

I'm not sure if you're getting this but your link in the OP refers to a Torque 3D feature. This is not Torque 3D. The closest equivalent in Blockland's engine is the WaterBlock class, which was removed as of v21.

waterPlane-fxPlane

fxPlane objects do not animate in any way other than scrolling.

waterzone-PhysicalZone

You do not need a zone for anything.

That was suck, I am finish this thread.
« Last Edit: January 29, 2014, 06:57:12 AM by Furling² »